When downloading/importing packages, enforce all checksums

This commit is contained in:
Andrey Smirnov committed 2017-04-26 23:17:04 +03:00
1 parent c40025a335
commit 1f3cb2db5d
12 files changed
+57 -16

No files matched your search

+3
View File
@@ -173,6 +173,9 @@ func (downloader *downloaderImpl) download(req *http.Request, url, destination s
os.Remove(temppath)
return "", err
}
} else {
// update checksums if they match, so that they contain exactly expected set
*expected = actual
}
}