- print "This transition is over, the target package reached testing, removing"
- print "%s wanted version: %s, has %s" % (source, new_vers, curvers)
- to_remove.append(trans)
- to_dump = 1
+ compare = apt_pkg.VersionCompare(curvers, new_vers)
+ print "Apt compare says: %s" % (compare)
+ if compare < 0:
+ # This is still valid, the current version in database is older than
+ # the new version we wait for
+ print "This transition is still ongoing, we currently have version %s" % (curvers)
+ else:
+ print "This transition is over, the target package reached testing, removing"
+ print "%s wanted version: %s, has %s" % (source, new_vers, curvers)
+ to_remove.append(trans)
+ to_dump = 1