From 6d4a0ccecb58c62a95f7f36fa2f4fa53dd52312e Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 5 Aug 2022 09:19:47 +0200 Subject: disarchive-manifest: Filter out origins without a hash. * etc/disarchive-manifest.scm (disarchive-collection): Filter out origins with a phony hash. --- etc/disarchive-manifest.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/disarchive-manifest.scm b/etc/disarchive-manifest.scm index e4bc97dd01..b12cd78466 100644 --- a/etc/disarchive-manifest.scm +++ b/etc/disarchive-manifest.scm @@ -99,6 +99,12 @@ an empty directory if ORIGIN could not be disassembled." (directory-union "disarchive-collection" (filter-map (lambda (origin) (and (tarball-origin? origin) + + ;; Dismiss origins with (sha256 #f) such + ;; as that of IceCat. + (and=> (origin-hash origin) + content-hash-value) + (origin->disarchive origin))) origins) #:copy? #t)) -- cgit 1.4.1