]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/upload.py
There should only be one place to check for a debug package
[dak.git] / daklib / upload.py
index 8b2aabf038212bc6019287e00c8d9c7a6c99783e..b78d100fe55c5e59d48f03338a9ec11a9a0edff9 100644 (file)
@@ -462,9 +462,6 @@ 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)
@@ -500,13 +497,6 @@ 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