Fix broken code due to addition of Progress.

This commit is contained in:
Andrey Smirnov
2014-02-04 13:06:55 +04:00
parent ab468bcac4
commit d350e9edba
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ func (repo *RemoteRepo) Download(d utils.Downloader, packageCollection *PackageC
// Save package meta information to DB
err := list.ForEach(func(p *Package) error {
d.GetProgress().Add(1)
d.GetProgress().AddBar(1)
return packageCollection.Update(p)
})