upstream: Determine archive type correctly.

* guix/upstream.scm (package-update): Take the basename of the uri
  before trying to determine the extension.
master
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
1 changed files with 1 additions and 1 deletions

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)