mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
archive: don't use existing file if no verification methods provided
we shouldn't use an existing file if we aren't checking its checksums
This commit is contained in:
parent
86276665cd
commit
be6e09a02b
@ -385,7 +385,8 @@ class SourcePackage(ABC):
|
||||
else:
|
||||
pathname = os.path.join(self.workdir, filename)
|
||||
|
||||
if self._verify_file(pathname, dscverify, sha1sum, sha256sum, size):
|
||||
can_verify = any((dscverify, sha1sum, sha256sum))
|
||||
if can_verify and self._verify_file(pathname, dscverify, sha1sum, sha256sum, size):
|
||||
Logger.info('Using existing file %s', filename)
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user