diff --git a/aptly/interfaces.go b/aptly/interfaces.go index 29a30566..f272f707 100644 --- a/aptly/interfaces.go +++ b/aptly/interfaces.go @@ -130,7 +130,7 @@ type Downloader interface { DownloadWithChecksum(ctx context.Context, url string, destination string, expected *utils.ChecksumInfo, ignoreMismatch bool, maxTries int) error // GetProgress returns Progress object GetProgress() Progress - // GetLength of given url + // GetLength returns size by heading object with url GetLength(ctx context.Context, url string) (int64, error) } diff --git a/deb/remote.go b/deb/remote.go index 2a862858..ebb1ce5e 100644 --- a/deb/remote.go +++ b/deb/remote.go @@ -460,7 +460,7 @@ func (repo *RemoteRepo) DownloadPackageIndexes(progress aptly.Progress, d aptly. isInstaller := kind == PackageTypeInstaller if err != nil { 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 if ignoreMismatch { continue