X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=daklib%2Farchive.py;h=e2b3a17a5ccf10c6e69d1492d760c6480dab1976;hb=1bbc46bb933a97c90a4c36b621c7e202398e2d8d;hp=6a424cdfdc08a91632daff29bc2785d8d7a637bf;hpb=76bcea909c8a45646123385d82793e8d00ba87b7;p=dak.git diff --git a/daklib/archive.py b/daklib/archive.py index 6a424cdf..e2b3a17a 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -86,7 +86,7 @@ class ArchiveTransaction(object): Will not give an error when the file is already present. @rtype: L{daklib.dbconn.PoolFile} - @return: batabase object for the new file + @return: database object for the new file """ session = self.session @@ -652,7 +652,13 @@ class ArchiveUpload(object): continue fs.copy(src, dst, mode=0o640) - source = self.changes.source + source = None + try: + source = self.changes.source + except Exception: + # Do not raise an exception here if the .dsc is invalid. + pass + if source is not None: for f in source.files.itervalues(): src = os.path.join(self.original_directory, f.filename) @@ -881,9 +887,8 @@ class ArchiveUpload(object): try: # Validate signatures and hashes before we do any real work: for chk in ( - checks.SignatureCheck, + checks.SignatureAndHashesCheck, checks.ChangesCheck, - checks.HashesCheck, checks.ExternalHashesCheck, checks.SourceCheck, checks.BinaryCheck,