X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=920cfb9bf7c24d8fc0b5c3797a8d00ab0f7d9428;hb=105153673ddf17fa20705d07d73b0f100c577546;hp=dc92f74fc5a2065d4d7259b788002f8966c16860;hpb=4f1e5180c650220ad688c3b2cbe36e2a45e517db;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index dc92f74f..920cfb9b 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -1030,10 +1030,12 @@ def check_transition(sourcepkg): # Will be None if nothing is in testing. curvers = daklib.database.get_testing_version(source) + if not curvers == None: + compare = apt_pkg.VersionCompare(curvers, new_vers) - 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 # Check if the source we look at is affected by this. if sourcepkg in t['packages']: