Use PackageCollection when downloading remote repo.

This commit is contained in:
Andrey Smirnov
2013-12-23 14:14:17 +04:00
parent 65063135c9
commit fe61ae1b41
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -124,7 +124,9 @@ func aptlyMirrorUpdate(cmd *commander.Command, args []string) error {
return fmt.Errorf("unable to update: %s", err)
}
err = repo.Download(context.downloader, context.database, context.packageRepository)
packageCollection := debian.NewPackageCollection(context.database)
err = repo.Download(context.downloader, packageCollection, context.packageRepository)
if err != nil {
return fmt.Errorf("unable to update: %s", err)
}