X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=daklib%2Fupload.py;h=dcd008aae5e28aa1e81aea1240eb823c24ee488d;hb=6486b0e07f03a250a1ab87c7f6ace05a16388f38;hp=c55c4090496818d9c5f5cf07f64ec6445d58e7af;hpb=6f5a4716955f6370dc740b62c907d0c0e83735be;p=dak.git diff --git a/daklib/upload.py b/daklib/upload.py index c55c4090..dcd008aa 100644 --- a/daklib/upload.py +++ b/daklib/upload.py @@ -439,6 +439,10 @@ class Source(object): raise InvalidSourceException("Multiple .dsc found ({0} and {1})".format(self._dsc_file.filename, f.filename)) else: self._dsc_file = f + + # make sure the hash for the dsc is valid before we use it + self._dsc_file.check(directory) + dsc_file_path = os.path.join(directory, self._dsc_file.filename) data = open(dsc_file_path, 'r').read() self._signed_file = SignedFile(data, keyrings, require_signature) @@ -489,3 +493,10 @@ class Source(object): if len(fields) > 1: return fields[0] return "main" + + @property + def filename(self): + """filename of .dsc file + @type: str + """ + return self._dsc_file.filename