import: utils: Remove 'assoc-ref*'.
* guix/import/utils.scm (assoc-ref*): Remove.master
parent
7657e61d6b
commit
2d0409a4a2
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2012, 2013, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2012, 2013, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
|
;;; Copyright © 2016 Jelle Licht <jlicht@fsfe.org>
|
||||||
;;; Copyright © 2016 David Craven <david@craven.ch>
|
;;; Copyright © 2016 David Craven <david@craven.ch>
|
||||||
;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@elephly.net>
|
||||||
|
@ -47,7 +47,6 @@
|
||||||
#:export (factorize-uri
|
#:export (factorize-uri
|
||||||
|
|
||||||
flatten
|
flatten
|
||||||
assoc-ref*
|
|
||||||
|
|
||||||
url-fetch
|
url-fetch
|
||||||
guix-hash-url
|
guix-hash-url
|
||||||
|
@ -110,13 +109,6 @@ of the string VERSION is replaced by the symbol 'version."
|
||||||
(cons elem memo)))
|
(cons elem memo)))
|
||||||
'() lst))
|
'() lst))
|
||||||
|
|
||||||
(define (assoc-ref* alist key . rest)
|
|
||||||
"Return the value for KEY from ALIST. For each additional key specified,
|
|
||||||
recursively apply the procedure to the sub-list."
|
|
||||||
(if (null? rest)
|
|
||||||
(assoc-ref alist key)
|
|
||||||
(apply assoc-ref* (assoc-ref alist key) rest)))
|
|
||||||
|
|
||||||
(define (url-fetch url file-name)
|
(define (url-fetch url file-name)
|
||||||
"Save the contents of URL to FILE-NAME. Return #f on failure."
|
"Save the contents of URL to FILE-NAME. Return #f on failure."
|
||||||
(parameterize ((current-output-port (current-error-port)))
|
(parameterize ((current-output-port (current-error-port)))
|
||||||
|
|
Reference in New Issue