]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/checks.py
There should only be one place to check for a debug package
[dak.git] / daklib / checks.py
index 48251adb3eab3a5075f96c8d5f652933f8ae38e2..86040268ac7d3bc0d5ac458cd84952621ffda40a 100644 (file)
@@ -297,7 +297,7 @@ class BinaryCheck(Check):
                         for binary in upload.changes.binaries}
 
         for name, binary in binaries.items():
-            if binary.control['Section'] == debug_deb_section:
+            if binary.section == debug_deb_section:
                 # If we have a Binary package in the Debug section, we
                 # can allow it to not be present in the Binary field
                 # in the .changes file, so long as its name (without