X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fupload.py;h=4c10f45f4e433e36bfd40a40fcff31673f2fc5b9;hb=165bcf28c9bc21d449253f05efba0b5f39ff6abf;hp=8b2aabf038212bc6019287e00c8d9c7a6c99783e;hpb=64d9673cf98a8adb330f5de673c471d55999457c;p=dak.git diff --git a/daklib/upload.py b/daklib/upload.py index 8b2aabf0..4c10f45f 100644 --- a/daklib/upload.py +++ b/daklib/upload.py @@ -374,6 +374,8 @@ class Changes(object): for f in self.files.itervalues(): if re_file_dsc.match(f.filename) or re_file_source.match(f.filename) or re_file_binary.match(f.filename): continue + if re_file_buildinfo.match(f.filename): + continue if f.section != 'byhand' and f.section[:4] != 'raw-': raise InvalidChangesException("{0}: {1} looks like a byhand package, but is in section {2}".format(self.filename, f.filename, f.section)) byhand.append(f) @@ -462,9 +464,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 +499,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