]> git.decadent.org.uk Git - dak.git/commitdiff
dak/process_new.py: fix up binary diversion into various queues
authorPhilipp Kern <pkern@debian.org>
Fri, 8 Aug 2008 15:01:15 +0000 (12:01 -0300)
committerPhilipp Kern <pkern@debian.org>
Fri, 8 Aug 2008 15:01:15 +0000 (12:01 -0300)
dak/process_new.py

index 6b37d6993290aff234b7fca99155b9832cec8547..9ed65cc568cf90d5bdb34e39251f1f0ae4e8b307 100755 (executable)
@@ -846,21 +846,22 @@ def do_accept_stableupdate(suite, q):
         if is_source_in_qdir(queue_dir):
             # It's in p-u holding, so move it there.
             move_to_holding(suite, queue_dir)
-        if is_source_in_qdir(Cnf["Dir::Queue::New"]):
+        elif is_source_in_qdir(Cnf["Dir::Queue::New"]):
             # It's in NEW.  We expect the source to land in p-u holding
             # pretty soon.
             move_to_holding(suite, queue_dir)
-        if is_source_in_qdir(Cnf["Dir::Queue::Accepted"]):
+        elif is_source_in_qdir(Cnf["Dir::Queue::Accepted"]):
             # The source is in accepted, the binary cleared NEW: accept it.
             Upload.accept(summary, short_summary)
             os.unlink(Upload.pkg.changes_file[:-8]+".dak")
-        if Upload.source_exists(Upload.pkg.changes["source"],
+        elif Upload.source_exists(Upload.pkg.changes["source"],
                 Upload.pkg.changes["version"]):
             # dak tells us that there is source available.  At time of
             # writing this means that it is installed, so put it into
             # accepted.
             Upload.accept(summary, short_summary)
             os.unlink(Upload.pkg.changes_file[:-8]+".dak")
+       return
     move_to_holding(suite, queue_dir)
 
 def do_accept():