mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-21 10:58:23 +00:00
Major refactoring of files in package: hide them in Package type.
This commit is contained in:
1 parent
06f1c62ef0
commit
4aa24048d5
8 files changed
+272
-95
No files matched your search
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