]> git.decadent.org.uk Git - dak.git/commitdiff
Choose suite to redirect upload to before installing source
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 16 Aug 2015 18:30:40 +0000 (20:30 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 16 Aug 2015 18:44:30 +0000 (20:44 +0200)
dak/process_policy.py

index a4e6d875f033a889a856a06dff128109d3d6cc21..4b3d97dc12fc681c0021c5ccc3926bcefba97d81 100755 (executable)
@@ -186,24 +186,24 @@ def comment_accept(upload, srcqueue, comments, transaction):
                 )
 
         for db_binary in upload.binaries:
+            # Now, let's work out where to copy this guy to -- if it's
+            # a debug binary, and the suite has a debug suite, let's go
+            # ahead and target the debug suite rather then the stock
+            # suite.
+            copy_to_suite = suite
+            if debug_suite is not None and is_debug_binary(db_binary):
+                copy_to_suite = debug_suite
+
             # build queues may miss the source package if this is a
             # binary-only upload.
             if suite != upload.target_suite:
                 transaction.copy_source(
                     db_binary.source,
-                    suite,
+                    copy_to_suite,
                     source_component_func(db_binary.source),
                     allow_tainted=allow_tainted,
                 )
 
-            # Now, let's work out where to copy this guy to -- if it's
-            # a debug binary, and the suite has a debug suite, let's go
-            # ahead and target the debug suite rather then the stock
-            # suite.
-            copy_to_suite = suite
-            if debug_suite is not None and is_debug_binary(db_binary):
-                copy_to_suite = debug_suite
-
             transaction.copy_binary(
                 db_binary,
                 copy_to_suite,