- if curvers and apt_pkg.VersionCompare(new_vers, curvers) == 1:
- # This is still valid, the current version in database is older than
- # the new version we wait for
+ if curvers == None or compare < 0:
+ # This is still valid, the current version in testing is older than
+ # the new version we wait for, or there is none in testing yet