mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-05 05:20:34 +00:00
Make database open attempts configurable also via config file
This commit is contained in:
committed by
Andrey Smirnov
parent
586f879e80
commit
98e75f6d97
@@ -12,6 +12,7 @@ type ConfigStructure struct { // nolint: maligned
|
||||
DownloadConcurrency int `json:"downloadConcurrency"`
|
||||
DownloadLimit int64 `json:"downloadSpeedLimit"`
|
||||
DownloadRetries int `json:"downloadRetries"`
|
||||
DatabaseOpenAttempts int `json:"databaseOpenAttempts"`
|
||||
Architectures []string `json:"architectures"`
|
||||
DepFollowSuggests bool `json:"dependencyFollowSuggests"`
|
||||
DepFollowRecommends bool `json:"dependencyFollowRecommends"`
|
||||
@@ -76,6 +77,7 @@ var Config = ConfigStructure{
|
||||
RootDir: filepath.Join(os.Getenv("HOME"), ".aptly"),
|
||||
DownloadConcurrency: 4,
|
||||
DownloadLimit: 0,
|
||||
DatabaseOpenAttempts: -1,
|
||||
Architectures: []string{},
|
||||
DepFollowSuggests: false,
|
||||
DepFollowRecommends: false,
|
||||
|
||||
Reference in New Issue
Block a user