.. -*- coding: utf-8 -*- Version 0.13.2 -------------- :publication date: 2009/02/03 :expected date: n/a Ticket #6146 'changelog close' seems confused about version numbers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :type: bug :state: resolved trace: :: auc@crater:~/rep/clients/estock/eStock$ cat version.txt 1.8.4 auc@crater:~/rep/clients/estock/eStock$ changelog close logilab.devtools.lgp.changelog Traceback (most recent call last): File "/home/auc/bin/changelog", line 5, in changelog.run(sys.argv[1:]) File "/home/auc/rep/public/logilab/devtools/changelog.py", line 110, in run chlg.close(pkg_dir, create) File "/home/auc/rep/public/logilab/devtools/lgp/changelog.py", line 104, in close '%s >= %s !' % (self.entries[1].version, version) AssertionError: 1.8.3 >= 1.8.4 ! Comments :: On 2009/01/16 18:39 - acampeas wrote : not all packages are comparable using dpkg : :: class Version(object): def __init__(self, versionstr): self.value = versionstr.strip() def __str__(self): return self.value def __compare(self, op, other): if isinstance(other, Version): status = subprocess.call(['dpkg', '--compare-versions', self.value, op, other.value]) return (status == 0) return NotImplemented def __eq__(self, other): return self.__compare('eq', other) def __ne__(self, other): return self.__compare('ne', other) def __lt__(self, other): return self.__compare('lt', other) def __le__(self, other): return self.__compare('le', other) def __gt__(self, other): return self.__compare('gt', other) def __ge__(self, other): return self.__compare('ge', other) On 2009/01/19 13:30 - Unknown author wrote : The real issue is that version 1.8.3 is an instance of logilab.common.changelog.Version and version 1.8.4 is an instance of logilab.devtools.lgp.changelog.Version. The former has no value attribute and therefore the call to __lt__ fails with AttributeError, and Python defaults to the standard comparison (using object identities as a key). Ticket #5032 piuparts checker fails ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :type: bug :state: resolved checking apycot with piuparts fails in lgp build. Check how the command is run.