Refresh the packages in multiple threads

This commit is contained in:
Stephan Kulow
2022-11-03 22:04:45 +01:00
parent ab38332642
commit d21ce571f5
3 changed files with 115 additions and 73 deletions

View File

@@ -60,6 +60,7 @@ class GitExporter:
gc_cnt = self.gc_interval
if len(left_to_commit) > 0:
logging.info(f"Commiting into {self.git.path}")
self.git.gc()
for flat in left_to_commit:
gc_cnt -= 1