summaryrefslogtreecommitdiff
path: root/tests/print.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-10-29 22:23:21 +0200
committerLudovic Courtès <ludo@gnu.org>2021-11-11 00:14:31 +0100
commitb3240ae846cb1ace2322a68eca3497f11d0be6f1 (patch)
treeda0a521a3fdd2896214cb3010949777f54622d72 /tests/print.scm
parent04d929570ad816793d7e0024a11314124ce87f98 (diff)
import: print: Correctly handle URI lists.
* guix/import/print.scm (package->code)[factorized-uri-code]: New procedure. [source->code]: Use it, and factorize URI when it's a list. * tests/print.scm (pkg-with-origin-input): Check origin URI to a list.
Diffstat (limited to 'tests/print.scm')
-rw-r--r--tests/print.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/print.scm b/tests/print.scm
index ad19f4573a..7f4c8ccdd1 100644
--- a/tests/print.scm
+++ b/tests/print.scm
@@ -73,8 +73,10 @@
(version "1.2.3")
(source (origin
(method url-fetch)
- (uri (string-append "file:///tmp/test-"
- version ".tar.gz"))
+ (uri (list (string-append "file:///tmp/test-"
+ version ".tar.gz")
+ (string-append "http://example.org/test-"
+ version ".tar.gz")))
(sha256
(base32
"070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))