Clarify doc strings

This commit is contained in:
Oliver Sauder
2018-05-22 11:55:00 +02:00
parent 074904ee92
commit 6df4a746f1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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