upstream: Determine archive type correctly.

* guix/upstream.scm (package-update): Take the basename of the uri
  before trying to determine the extension.
This commit is contained in:
David Craven 2016-12-15 05:53:32 +01:00
parent 200cdf81c6
commit 6976c68158
No known key found for this signature in database
GPG Key ID: C5E051C79C0BECDB

View File

@ -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)