aboutsummaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorDavid Craven <david@craven.ch>2016-12-15 05:53:32 +0100
committerDavid Craven <david@craven.ch>2016-12-15 05:57:03 +0100
commit6976c68158e9c6bb264ca48041da5be1c24521cf (patch)
treeb0ffb1adb7eb170e3c61f830a16edc463e8faa3a /guix
parent200cdf81c6e5b92dc486b705d158a4a8565f5f40 (diff)
downloadgnu-guix-6976c68158e9c6bb264ca48041da5be1c24521cf.tar
gnu-guix-6976c68158e9c6bb264ca48041da5be1c24521cf.tar.gz
upstream: Determine archive type correctly.
* guix/upstream.scm (package-update): Take the basename of the uri before trying to determine the extension.
Diffstat (limited to 'guix')
-rw-r--r--guix/upstream.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/upstream.scm b/guix/upstream.scm
index 22187311ea..2334c4c0a6 100644
--- a/guix/upstream.scm
+++ b/guix/upstream.scm
@@ -241,7 +241,7 @@ and 'interactive' (default)."
((archive-type)
(match (and=> (package-source package) origin-uri)
((? string? uri)
- (file-extension uri))
+ (file-extension (basename uri)))
(_
"gz")))
((url signature-url)