Project

General

Profile

« Previous | Next » 

Revision 829c40b8

Added by Marc Dequènes almost 11 years ago

  • ID 829c40b8de8d7197ea3da2e31404f73859f4af0c

[fix] ensure input versions are all strings (which will treat nil as an empty string, which is fine)

View differences:

lib/debian/version.rb
33 33
  end
34 34

  
35 35
  def compare_versions(lver, rver)
36
    Debian_apt.debVS.cmp_version(lver, rver)
36
    Debian_apt.debVS.cmp_version(lver.to_s, rver.to_s)
37 37
  end
38 38

  
39 39
  def check_version_constraint(lver, op, rver)
40
    Debian_apt.debVS.check_dep(lver, @@op_to_opcode[op], rver)
40
    Debian_apt.debVS.check_dep(lver.to_s, @@op_to_opcode[op], rver.to_s)
41 41
  end
42 42
end
43 43

  

Also available in: Unified diff