- deb packages let you specify 'or' in deps (pipe, '|'). Let it work.

This commit is contained in:
Jordan Sissel 2011-07-08 00:13:09 -07:00
parent 9c58d546aa
commit 71dd690acb
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@ class FPM::Target::Deb < FPM::Package
def fix_dependency(dep)
# Convert strings 'foo >= bar' to 'foo (>= bar)'
if dep =~ /\(/
# nothing
if dep =~ /[\(,\|]/
# Don't "fix" ones that could appear well formed already.
else
# If the dependency is simply a name, turn it into 'name (>= 0)'
da = dep.split(/ +/)