]> git.decadent.org.uk Git - dak.git/blobdiff - dak/process_unchecked.py
Fix check logic to work the way apt_pkg.VersionCompare wants it. Also parse "not...
[dak.git] / dak / process_unchecked.py
index dc92f74fc5a2065d4d7259b788002f8966c16860..920cfb9bf7c24d8fc0b5c3797a8d00ab0f7d9428 100755 (executable)
@@ -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']: