Activity log for bug #535667

Date Who What changed Old value New value Message
2010-03-10 11:54:31 Luca Falavigna bug added bug
2010-03-10 11:54:31 Luca Falavigna attachment added testcase.py http://launchpadlibrarian.net/40686648/testcase.py
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).
2010-03-10 14:04:12 Julian Andres Klode bug task added python-apt (Debian)
2010-03-10 14:04:22 Julian Andres Klode python-apt (Debian): status New Fix Committed
2010-03-10 16:15:26 Launchpad Janitor branch linked lp:~mvo/python-apt/debian-sid-mirrored
2010-03-11 03:32:21 Launchpad Janitor branch linked lp:debian/sid/python-apt
2010-03-11 14:46:11 Julian Andres Klode python-apt (Debian): status Fix Committed Fix Released
2010-03-30 10:37:58 Julian Andres Klode python-apt (Ubuntu): status New Fix Released