mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
download: Remove obsolete workaround.
* guix/download.scm (%content-addressed-mirrors): Use (guix base16) unconditionally.
This commit is contained in:
parent
3858275962
commit
67da646087
1 changed files with 1 additions and 7 deletions
|
@ -369,7 +369,7 @@ (define %content-addressed-mirrors
|
|||
;; procedure that takes a file name, an algorithm (symbol) and a hash
|
||||
;; (bytevector), and returns a URL or #f.
|
||||
'(begin
|
||||
(use-modules (guix base32))
|
||||
(use-modules (guix base16) (guix base32))
|
||||
|
||||
(define (guix-publish host)
|
||||
(lambda (file algo hash)
|
||||
|
@ -379,12 +379,6 @@ (define (guix-publish host)
|
|||
file "/" (symbol->string algo) "/"
|
||||
(bytevector->nix-base32-string hash))))
|
||||
|
||||
;; XXX: (guix base16) appeared in March 2017 (and thus 0.13.0) so old
|
||||
;; installations of the daemon might lack it. Thus, load it lazily to
|
||||
;; avoid gratuitous errors. See <https://bugs.gnu.org/33542>.
|
||||
(module-autoload! (current-module)
|
||||
'(guix base16) '(bytevector->base16-string))
|
||||
|
||||
(list (guix-publish "ci.guix.gnu.org")
|
||||
(lambda (file algo hash)
|
||||
;; 'tarballs.nixos.org' supports several algorithms.
|
||||
|
|
Loading…
Reference in a new issue