Revision 829c40b8
Added by Marc Dequènes over 15 years ago
- ID 829c40b8de8d7197ea3da2e31404f73859f4af0c
lib/debian/version.rb | ||
---|---|---|
end
|
||
|
||
def compare_versions(lver, rver)
|
||
Debian_apt.debVS.cmp_version(lver, rver)
|
||
Debian_apt.debVS.cmp_version(lver.to_s, rver.to_s)
|
||
end
|
||
|
||
def check_version_constraint(lver, op, rver)
|
||
Debian_apt.debVS.check_dep(lver, @@op_to_opcode[op], rver)
|
||
Debian_apt.debVS.check_dep(lver.to_s, @@op_to_opcode[op], rver.to_s)
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
[fix] ensure input versions are all strings (which will treat nil as an empty string, which is fine)