]> git.decadent.org.uk Git - dak.git/commitdiff
Also look in embargoed and unembargoed queues for source.
authorJames Troup <james@nocrew.org>
Fri, 16 Jun 2006 03:58:01 +0000 (04:58 +0100)
committerJames Troup <james@nocrew.org>
Fri, 16 Jun 2006 03:58:01 +0000 (04:58 +0100)
dak/process_unchecked.py

index 1cf2234ecd2f10a4a0f6b132980e25e40f175f67..828b695dfbfdd23e6d51d55a387549a8b72ab21d 100755 (executable)
@@ -529,8 +529,14 @@ def check_files():
                         files[file]["byhand"] = 1
                     elif os.path.exists(Cnf["Dir::Queue::New"] + '/' + dsc_filename):
                         files[file]["new"] = 1
-                    elif not os.path.exists(Cnf["Dir::Queue::Accepted"] + '/' + dsc_filename):
-                        reject("no source found for %s %s (%s)." % (source_package, source_version, file))
+                    else:
+                       dsc_file_exists = 0
+                        for myq in ["Accepted", "Embargoed", "Unembargoed"]:
+                            if os.path.exists(Cnf["Dir::Queue::"+myq] + '/' + dsc_filename):
+                               dsc_file_exists = 1
+                               break
+                       if not dsc_file_exists:
+                            reject("no source found for %s %s (%s)." % (source_package, source_version, file))
             # Check the version and for file overwrites
             reject(Upload.check_binary_against_db(file),"")