lib/licensed/sources/cabal.rb
# Returns package information as a hash for the given id
Returns package information as a hash for the given id
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|
          key, value = line.split(":", 2).map(&:strip)
          next unless key && value
          info[key] = value
        end
      end
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 | key , value = line . split ( ":" , 2 ) . map ( & :strip ) next unless key && value info [ key ] = value end end
Returns package information as a hash for the given id
Returns package information as a hash for the given id
id
<not_specific>