X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=daklib%2Fupload.py;h=ec120a7bdbdd9964d2b3fbfd7304ea567ad4a184;hb=e86a480016961c957ca425bf5219600089a92632;hp=f6a2a815259cfebe54a71ad99fc6f0bc42e364e3;hpb=812a25532143ed8a4e976e2928c6a404f9f0a215;p=dak.git diff --git a/daklib/upload.py b/daklib/upload.py index f6a2a815..ec120a7b 100644 --- a/daklib/upload.py +++ b/daklib/upload.py @@ -28,6 +28,7 @@ import re from daklib.gpg import SignedFile from daklib.regexes import * +import daklib.packagelist class InvalidChangesException(Exception): pass @@ -273,6 +274,14 @@ class Changes(object): """ return self._signed_file.valid + @property + def signature_timestamp(self): + return self._signed_file.signature_timestamp + + @property + def contents_sha1(self): + return self._signed_file.contents_sha1 + @property def architectures(self): """list of architectures included in the upload @@ -447,6 +456,10 @@ class Binary(object): version = self.control['Version'] return (match.group('package'), version) + @property + def name(self): + return self.control['Package'] + @property def type(self): """package type ('deb' or 'udeb') @@ -495,6 +508,11 @@ class Source(object): @type: dict-like """ + self.package_list = daklib.packagelist.PackageList(self.dsc) + """Information about packages built by the source. + @type: daklib.packagelist.PackageList + """ + self._files = None @classmethod