diff --git a/build/ci.go b/build/ci.go index d22e2930cd..88e4e82282 100644 --- a/build/ci.go +++ b/build/ci.go @@ -1170,5 +1170,5 @@ func doPurge(cmdline []string) { func doSanityCheck() { csdb := download.MustLoadChecksums("build/checksums.txt") - csdb.VerifyAll() + csdb.DownloadAndVerifyAll() } diff --git a/internal/download/download.go b/internal/download/download.go index 8c0c4d544f..106e93618d 100644 --- a/internal/download/download.go +++ b/internal/download/download.go @@ -127,12 +127,10 @@ func (db *ChecksumDB) Files() iter.Seq[string] { } } -// VerifyAll downloads all files and checks that they match the checksum given in +// DownloadAndVerifyAll downloads all files and checks that they match the checksum given in // the database. This task can be used to sanity-check new checksums. -func (db *ChecksumDB) VerifyAll() { - var ( - tmp = os.TempDir() - ) +func (db *ChecksumDB) DownloadAndVerifyAll() { + var tmp = os.TempDir() for _, e := range db.hashes { if e.url == nil { log.Printf("Skipping verification of %s: no URL defined in checksum database", e.file)