diff --git a/http/download.go b/http/download.go index cbf096c0..e7167945 100644 --- a/http/download.go +++ b/http/download.go @@ -318,7 +318,7 @@ func DownloadTryCompression(downloader aptly.Downloader, url string, expectedChe } if err != nil { - if err1, ok := err.(*HTTPError); ok && err1.Code == 404 { + if err1, ok := err.(*HTTPError); ok && (err1.Code == 404 || err1.Code == 403) { continue } return nil, nil, err