1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-27 03:41:34 +02:00

- default version comparison should be >=0, as '>0' is deprecated.

https://github.com/jordansissel/fpm/issues/33
This commit is contained in:
Jordan Sissel 2011-05-16 00:18:38 -07:00
parent b00d1b42b1
commit f1b1799d48

@ -9,9 +9,10 @@ Maintainer: <%= maintainer or "<unknown>" %>
if dep =~ /\(/
# nothing
else
# If the dependency is simply a name, turn it into 'name (>= 0)'
da = dep.split(/ +/)
if da.size == 1
da += [">", "0"]
da += [">=", "0"]
end
dep = "#{da[0]} (#{da[1]} #{da[2]})"
end