mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-15 11:25:22 -05:00
parent
d020821c0b
commit
888e477bf8
1 changed files with 0 additions and 10 deletions
|
@ -47,7 +47,6 @@ (define-module (guix import utils)
|
|||
|
||||
flatten
|
||||
assoc-ref*
|
||||
hash-ref*
|
||||
|
||||
url-fetch
|
||||
guix-hash-url
|
||||
|
@ -117,15 +116,6 @@ (define (assoc-ref* alist key . rest)
|
|||
(assoc-ref alist key)
|
||||
(apply assoc-ref* (assoc-ref alist key) rest)))
|
||||
|
||||
(define (hash-ref* hash-table key . rest)
|
||||
"Return the value for KEY from HASH-TABLE. For each additional key specified,
|
||||
recursively apply the procedure to the sub-hash-table."
|
||||
(if (hash-table? hash-table)
|
||||
(if (null? rest)
|
||||
(hash-ref hash-table key)
|
||||
(apply hash-ref* (hash-ref hash-table key) rest))
|
||||
#f)) ; For consistency with assoc-ref*
|
||||
|
||||
(define (url-fetch url file-name)
|
||||
"Save the contents of URL to FILE-NAME. Return #f on failure."
|
||||
(parameterize ((current-output-port (current-error-port)))
|
||||
|
|
Loading…
Reference in a new issue