summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xguix/scripts/substitute.scm12
1 files changed, 0 insertions, 12 deletions
diff --git a/guix/scripts/substitute.scm b/guix/scripts/substitute.scm
index 383661511e2..b6754a47788 100755
--- a/guix/scripts/substitute.scm
+++ b/guix/scripts/substitute.scm
@@ -118,18 +118,6 @@ return its MAX-LENGTH first elements and its tail."
118 (values (reverse result) lst) 118 (values (reverse result) lst)
119 (loop (+ 1 len) tail (cons head result))))))) 119 (loop (+ 1 len) tail (cons head result)))))))
120 120
121(define (narinfo-from-file file url)
122 "Attempt to read a narinfo from FILE, using URL as the cache URL. Return #f
123if file doesn't exist, and the narinfo otherwise."
124 (catch 'system-error
125 (lambda ()
126 (call-with-input-file file
127 (cut read-narinfo <> url)))
128 (lambda args
129 (if (= ENOENT (system-error-errno args))
130 #f
131 (apply throw args)))))
132
133(define (lookup-narinfo caches path authorized?) 121(define (lookup-narinfo caches path authorized?)
134 "Return the narinfo for PATH in CACHES, or #f when no substitute for PATH 122 "Return the narinfo for PATH in CACHES, or #f when no substitute for PATH
135was found." 123was found."