mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-31 04:30:44 +00:00
Clarify doc strings
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ type Downloader interface {
|
|||||||
DownloadWithChecksum(ctx context.Context, url string, destination string, expected *utils.ChecksumInfo, ignoreMismatch bool, maxTries int) error
|
DownloadWithChecksum(ctx context.Context, url string, destination string, expected *utils.ChecksumInfo, ignoreMismatch bool, maxTries int) error
|
||||||
// GetProgress returns Progress object
|
// GetProgress returns Progress object
|
||||||
GetProgress() Progress
|
GetProgress() Progress
|
||||||
// GetLength of given url
|
// GetLength returns size by heading object with url
|
||||||
GetLength(ctx context.Context, url string) (int64, error)
|
GetLength(ctx context.Context, url string) (int64, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -460,7 +460,7 @@ func (repo *RemoteRepo) DownloadPackageIndexes(progress aptly.Progress, d aptly.
|
|||||||
isInstaller := kind == PackageTypeInstaller
|
isInstaller := kind == PackageTypeInstaller
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if _, ok := err.(*http.NoCandidateFoundError); isInstaller && ok {
|
if _, ok := err.(*http.NoCandidateFoundError); isInstaller && ok {
|
||||||
// checking of gpg file is only needed when checksums matches are required.
|
// checking if gpg file is only needed when checksums matches are required.
|
||||||
// otherwise there actually has been no candidate found and we can continue
|
// otherwise there actually has been no candidate found and we can continue
|
||||||
if ignoreMismatch {
|
if ignoreMismatch {
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user