]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/upload.py
Choose suite to redirect upload to before installing source
[dak.git] / daklib / upload.py
index b78d100fe55c5e59d48f03338a9ec11a9a0edff9..8b2aabf038212bc6019287e00c8d9c7a6c99783e 100644 (file)
@@ -462,6 +462,9 @@ class Binary(object):
         @type: dict-like
         """
 
+    def is_debug(self):
+        return self.section == "debug"
+
     @classmethod
     def from_file(cls, directory, filename):
         hashed_file = HashedFile.from_file(directory, filename)
@@ -497,6 +500,13 @@ class Binary(object):
             raise InvalidBinaryException('{0}: Does not match re_file_binary'.format(self.hashed_file.filename))
         return match.group('type')
 
+    @property
+    def section(self):
+        """section name
+        @type: str
+        """
+        return self.control['Section'].split('/', 1)[-1]
+
     @property
     def component(self):
         """component name