Pass expected checksums for package files to downloader.

This commit is contained in:
Andrey Smirnov
2014-02-03 17:42:12 +04:00
parent 360e09cc7d
commit c1feb4210c
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -211,7 +211,7 @@ func (repo *RemoteRepo) Download(d utils.Downloader, packageCollection *PackageC
_, found := queued[key]
if !found {
count++
downloadSize += task.Size
downloadSize += task.Checksums.Size
queued[key] = task
}
}
@@ -229,7 +229,7 @@ func (repo *RemoteRepo) Download(d utils.Downloader, packageCollection *PackageC
ch := make(chan error, len(queued))
for _, task := range queued {
d.Download(repo.PackageURL(task.RepoURI).String(), task.DestinationPath, ch)
d.DownloadWithChecksum(repo.PackageURL(task.RepoURI).String(), task.DestinationPath, ch, task.Checksums)
}
// Wait for all downloads to finish