]> git.decadent.org.uk Git - dak.git/commitdiff
Debug suites might also miss the source package
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 16 Jan 2016 15:14:06 +0000 (16:14 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sat, 16 Jan 2016 15:18:53 +0000 (16:18 +0100)
If a binary-only upload including debug packages gets accepted from a
policy queue, the source might be missing from the debug suite.

Reported-by: Matthias Klumpp <mak@debian.org>
dak/process_policy.py

index 7b6b9645ece4521cacd2373356ff750d81b271d0..8966dd6a209b6ec45c3c49a81cfbbc20b44191e2 100755 (executable)
@@ -195,9 +195,9 @@ def comment_accept(upload, srcqueue, comments, transaction):
             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:
+            # build queues and debug suites may miss the source package
+            # if this is a binary-only upload.
+            if copy_to_suite != upload.target_suite:
                 transaction.copy_source(
                     db_binary.source,
                     copy_to_suite,