]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/utils.py
There should only be one place to check for a debug package
[dak.git] / daklib / utils.py
index 401712381674a2fb83c9ec71e6b3a7e3336972fe..d33ec308366415e874cf2dc1383a63666f5cfeb2 100644 (file)
@@ -1325,3 +1325,17 @@ def parse_built_using(control):
         bu.append((source_name, source_version))
 
     return bu
+
+################################################################################
+
+def is_in_debug_section(control):
+    """binary package is a debug package
+
+    @type  control: dict-like
+    @param control: control file of binary package
+
+    @rtype Boolean
+    @return: True if the binary package is a debug package
+    """
+    section = control['Section'].split('/', 1)[-1]
+    return section == "debug"