2010-03-10 11:54:55 |
Luca Falavigna |
description |
Binary package hint: python-apt
I realized apt_pkg.check_dep does not correctly interpretes "<" as strictly minor, while apt_pkg.Dependency.comp_type returns that in case of strictly minor dependency.
I attached a test case showing that, here's its output:
comparison type is <
0.9.9-2 < 0.9.9-1 : False
0.9.9-0 < 0.9.9-1 : True
0.9.9-1 < 0.9.9-1 : True (!!!)
0.9.9-1 << 0.9.9-1 : False
As you can see, it says 0.9.9-1 is minor than itself, which is false. It behaves correctly if comparison type is set to "<<".
I think apt_pkg.Dependency.comp_type should return "<<", or apt_pkg.check_dep should be able to parse "<" as well, as of today there is a discrepancy in that which can cause weird bugs (see #484097). |
Binary package hint: python-apt
I realized apt_pkg.check_dep does not correctly interpretes "<" as strictly minor, while apt_pkg.Dependency.comp_type returns that in case of strictly minor dependency.
I attached a test case showing that, here's its output:
comparison type is <
0.9.9-2 < 0.9.9-1 : False
0.9.9-0 < 0.9.9-1 : True
0.9.9-1 < 0.9.9-1 : True (!!!)
0.9.9-1 << 0.9.9-1 : False
As you can see, it says 0.9.9-1 is minor than itself, which is false. It behaves correctly if comparison type is set to "<<".
I think apt_pkg.Dependency.comp_type should return "<<", or apt_pkg.check_dep should be able to parse "<" as well, as of today there is a discrepancy in that which can cause weird bugs (see bug #484097).
|
|