lib/licensed/sources/cabal.rb in licensed-2.10.0 vs lib/licensed/sources/cabal.rb in licensed-2.11.0

- old
+ new

@@ -109,14 +109,14 @@ # Returns package information as a hash for the given id def package_info(id) info = package_info_command(id).strip return missing_package(id) if info.empty? - info.lines.each_with_object({}) do |line, info| + info.lines.each_with_object({}) do |line, hsh| key, value = line.split(":", 2).map(&:strip) next unless key && value - info[key] = value + hsh[key] = value end end # Returns the output of running `ghc-pkg field` to obtain package information def package_info_command(id)