mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
Reset count to zero.
This commit is contained in:
1
debian/remote.go
vendored
1
debian/remote.go
vendored
@@ -366,6 +366,7 @@ func (repo *RemoteRepo) Download(d utils.Downloader, packageCollection *PackageC
|
|||||||
d.GetProgress().AddBar(1)
|
d.GetProgress().AddBar(1)
|
||||||
count++
|
count++
|
||||||
if count > 1000 {
|
if count > 1000 {
|
||||||
|
count = 0
|
||||||
err := packageCollection.db.FinishBatch()
|
err := packageCollection.db.FinishBatch()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user