X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fupload.py;fp=daklib%2Fupload.py;h=dcd008aae5e28aa1e81aea1240eb823c24ee488d;hb=c62cd1f27f6c0793461e5721fd61866bdc28ed6e;hp=447fa34a4805272b84adecd5126f69ec37426338;hpb=2d3e2034c20043bd6738b2c50e858a2e1fa149f7;p=dak.git diff --git a/daklib/upload.py b/daklib/upload.py index 447fa34a..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)