mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-06 22:18:28 +00:00
Reset count to zero.
This commit is contained in:
Vendored
+1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user