lib/distros/suse.rb in inqlude-0.7.0 vs lib/distros/suse.rb in inqlude-0.7.1

- old
+ new

@@ -44,11 +44,11 @@ unknown = 0 installed = Array.new handler.manifests.each do |manifest| unknown += 1 - package_section = manifest["packages"] + package_section = manifest.packages.openSUSE next unless package_section name_section = package_section[name] next unless name_section version_section = name_section[version] next unless version_section @@ -82,10 +82,10 @@ system "sudo zypper install #{cmd_options.join(" ")} #{package_name}" end end def get_package_name manifest - package_section = manifest["packages"] + package_section = manifest.packages.openSUSE if !package_section STDERR.puts "No packages section in metadata" else name_section = package_section[name] if !name_section