mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 07:12:30 -05:00
download: Honor #:verify-certificate? for SWH downloads.
Previously, the SWH + Disarchive fallback could fail with: Trying to use Disarchive to assemble /gnu/store/…-ucsim-0.6-pre68.tar.gz... Assembling the directory ucsim-0.6-pre68 Downloading /gnu/store/…-ucsim-0.6-pre68.tar.gz from Software Heritage... X.509 certificate of 'archive.softwareheritage.org' could not be verified: signer-not-found invalid Could not resolve directory reference This will no longer be the case since 'guix perform-download' passes #:verify-certificate? #f. * guix/build/download.scm (disarchive-fetch/any): Parameterize '%verify-swh-certificate?'.
This commit is contained in:
parent
ce83883f3d
commit
6d02a994f9
1 changed files with 2 additions and 1 deletions
|
@ -674,7 +674,8 @@ (define (resolve addresses output)
|
|||
(match (fetch-specification uris)
|
||||
(#f (format #t "could not find its Disarchive specification~%")
|
||||
#f)
|
||||
(spec (parameterize ((%disarchive-log-port (current-output-port)))
|
||||
(spec (parameterize ((%disarchive-log-port (current-output-port))
|
||||
(%verify-swh-certificate? verify-certificate?))
|
||||
(false-if-exception*
|
||||
(disarchive-assemble spec file #:resolver resolve))))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue