Skip to content

Commit

Permalink
Merge pull request #221 from svenihoney/debian_fix_unequal
Browse files Browse the repository at this point in the history
Introduced a dependency mapping for != dependency using Conflicts in deb instead of a Depends
  • Loading branch information
jordansissel committed May 23, 2012
2 parents 7ec2dd5 + 0182d6f commit ac5a399
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/fpm/package/deb.rb
Expand Up @@ -261,6 +261,10 @@ def fix_dependency(dep)
nextversion[l-1] = 0 nextversion[l-1] = 0
nextversion = nextversion.join(".") nextversion = nextversion.join(".")
return ["#{name} (>= #{version})", "#{name} (<< #{nextversion})"] return ["#{name} (>= #{version})", "#{name} (<< #{nextversion})"]
elsif (m = dep.match(/(\S+)\s+\(!= (.+)\)/))
# Append this to conflicts
self.conflicts += [dep.gsub(/!=/,"=")]
return []
elsif (m = dep.match(/(\S+)\s+\(= (.+)\)/)) and elsif (m = dep.match(/(\S+)\s+\(= (.+)\)/)) and
self.attributes[:deb_ignore_iteration_in_dependencies?] self.attributes[:deb_ignore_iteration_in_dependencies?]
# Convert 'foo (= x)' to 'foo (>= x)' and 'foo (<< x+1)' # Convert 'foo (= x)' to 'foo (>= x)' and 'foo (<< x+1)'
Expand Down

0 comments on commit ac5a399

Please sign in to comment.