mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-19 19:28:22 +00:00
Fix system tests
This commit is contained in:
@@ -224,10 +224,8 @@ func (context *AptlyContext) newDownloader(progress aptly.Progress) aptly.Downlo
|
||||
maxTries := context.config().DownloadRetries + 1
|
||||
maxTriesFlag := context.flags.Lookup("max-tries")
|
||||
if maxTriesFlag != nil {
|
||||
maxTriesFlagValue := maxTriesFlag.Value.Get().(int)
|
||||
if maxTriesFlagValue > maxTries {
|
||||
maxTries = maxTriesFlagValue
|
||||
}
|
||||
// If flag is defined prefer it to global setting
|
||||
maxTries = maxTriesFlag.Value.Get().(int)
|
||||
}
|
||||
return http.NewDownloader(downloadLimit*1024, maxTries, progress)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user