lib/kiwi_config.rb in machinery-tool-1.12.0 vs lib/kiwi_config.rb in machinery-tool-1.13.0

- old
+ new

@@ -28,11 +28,11 @@ "repositories", "packages", "os" ) check_existance_of_extracted_files - + check_repositories generate_config end def write(output_location) inject_users_and_groups(output_location) @@ -154,9 +154,22 @@ end end if !missing_scopes.empty? raise Machinery::Errors::MissingExtractedFiles.new(@system_description, missing_scopes) + end + end + + def check_repositories + if @system_description.repositories.empty? + raise( + Machinery::Errors::MissingRequirement.new( + "The scope 'repositories' of the system description doesn't contain a" \ + " repository, which is necesarry for kiwi." \ + " Please make sure that there is at least one accessible repository" \ + " with all the required packages." + ) + ) end end def generate_config @sh = <<EOF