From abe7872a28ce197fd5253471fa420fc689531603 Mon Sep 17 00:00:00 2001 From: Balki Date: Mon, 25 Nov 2024 21:05:59 +0000 Subject: [PATCH] Ignore core.db.sig and extra.db.sig download errors fixes #112 --- downloader.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/downloader.go b/downloader.go index 9bd80ef..e21b469 100644 --- a/downloader.go +++ b/downloader.go @@ -74,6 +74,11 @@ func (d *Downloader) download() error { for _, u := range urls { err := d.downloadFromUpstream(u, proxyURL) if err != nil { + if strings.HasSuffix(u, "/core.db.sig") || strings.HasSuffix(u, "/extra.db.sig") { + // Archlinux dbs are not signed as of Nov 2024 + // https://wiki.archlinux.org/title/DeveloperWiki:Repo_DB_Signing + return nil + } log.Printf("unable to download file %v: %v", d.key, err) continue // try next mirror }