lib/licensed/sources/cabal.rb
# Returns a package info structure with an error set
Returns a package info structure with an error set
Returns a package info structure with an error set
def missing_package(id)
        name, _, version = if id.index(/\s/).nil?
          id.rpartition("-") 
        else
          id.partition(/\s/) 
        end
        { "name" => name, "version" => version, "error" => "package not found" }
      end
def missing_package ( id ) name , _ , version = if id . index ( / \s / ) . nil? id . rpartition ( "-" ) else id . partition ( / \s / ) end { "name" => name , "version" => version , "error" => "package not found" } end
Returns a package info structure with an error set
Returns a package info structure with an error set
# e.g. to match the right-most dash from ipid fused-effects-1.0.0.0 # e.g. to match the left-most space from constraint fused-effects > 1.0.0.0
id
<not_specific>