rpkg is using new functions to validate file checksums

This commit is contained in:
Brian Stinson 2015-07-24 19:49:19 -05:00
parent 3ab1c85425
commit b35b8717cf

View file

@ -224,7 +224,7 @@ class Commands(Commands):
outfile = os.path.join(outdir, file)
# See if we already have a valid copy downloaded
if os.path.exists(outfile):
if self._verify_file(outfile, csum, self.lookasidehash):
if self.lookasidecache.file_is_valid(outfile, csum, self.lookasidehash):
continue
self.log.info("Downloading %s" % (file))
url = '%s/%s/%s/%s' % (self.lookaside, self.module_name,