mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-21 10:58:23 +00:00
Use Go context to abort gracefully mirror updates
There are two fixes here: 1. Abort package download immediately as ^C is pressed. 2. Import all the already downloaded files into package pool, so that next time mirror is updated, aptly won't download them once again.
This commit is contained in:
1 parent
a037615962
commit
15618c8ea8
12 files changed
+131
-80
No files matched your search
@@ -622,6 +622,7 @@ type PackageDownloadTask struct {
|
||||
File *PackageFile
|
||||
Additional []PackageDownloadTask
|
||||
TempDownPath string
|
||||
Done bool
|
||||
}
|
||||
|
||||
// DownloadList returns list of missing package files for download in format
|
||||
|
||||
Reference in new issue
Block a user