mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-07 05:42:42 +00:00
Major refactoring of files in package: hide them in Package type.
This commit is contained in:
Vendored
+5
-7
@@ -189,16 +189,14 @@ func (repo *RemoteRepo) Download(d utils.Downloader, packageCollection *PackageC
|
||||
count := 0
|
||||
|
||||
err = list.ForEach(func(p *Package) error {
|
||||
poolPath, err := packageRepo.PoolPath(p.Filename, p.HashMD5)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
list, err := p.DownloadList(packageRepo)
|
||||
|
||||
if !p.VerifyFile(poolPath) {
|
||||
d.Download(repo.PackageURL(p.Filename).String(), poolPath, ch)
|
||||
for _, pair := range list {
|
||||
d.Download(repo.PackageURL(pair[0]).String(), pair[1], ch)
|
||||
count++
|
||||
}
|
||||
return nil
|
||||
|
||||
return err
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user