]> git.decadent.org.uk Git - dak.git/blobdiff - dak/process_policy.py
There should only be one place to check for a debug package
[dak.git] / dak / process_policy.py
index 4b3d97dc12fc681c0021c5ccc3926bcefba97d81..7b6b9645ece4521cacd2373356ff750d81b271d0 100755 (executable)
@@ -49,6 +49,7 @@ from daklib.urgencylog import UrgencyLog
 from daklib.packagelist import PackageList
 
 import daklib.announce
+import daklib.utils
 
 # Globals
 Options = None
@@ -142,7 +143,7 @@ def comment_accept(upload, srcqueue, comments, transaction):
         return get_mapped_component(component_name, session=session)
 
     def is_debug_binary(db_binary):
-        return db_binary.proxy['Section'] == "debug"
+        return daklib.utils.is_in_debug_section(db_binary.proxy)
 
     def has_debug_binaries(upload):
         return any((is_debug_binary(x) for x in upload.binaries))