import github: Add to extension list.

* guix/import/github.scm (find-extension): Add '.tgz' extension.
This commit is contained in:
Efraim Flashner 2016-05-31 18:55:25 +03:00
parent 57d83cd29b
commit b93efac026
No known key found for this signature in database
GPG key ID: F4C1D3917EACEE93

View file

@ -44,7 +44,7 @@ (define (find-extension url)
"Return the extension of the archive e.g. '.tar.gz' given a URL, or
false if none is recognized"
(find (lambda x (string-suffix? (first x) url))
(list ".tar.gz" ".tar.bz2" ".tar.xz" ".zip" ".tar")))
(list ".tar.gz" ".tar.bz2" ".tar.xz" ".zip" ".tar" ".tgz")))
(define (updated-github-url old-package new-version)
;; Return a url for the OLD-PACKAGE with NEW-VERSION. If no source url in