Reset count to zero.

This commit is contained in:
Andrey Smirnov
2014-02-16 22:08:01 +04:00
parent 73e0d8c213
commit 47b3f3ed6a
+1
View File
@@ -366,6 +366,7 @@ func (repo *RemoteRepo) Download(d utils.Downloader, packageCollection *PackageC
d.GetProgress().AddBar(1)
count++
if count > 1000 {
count = 0
err := packageCollection.db.FinishBatch()
if err != nil {
return err