import: launchpad: Recognize the .orig.tar.gz extension.

* guix/import/launchpad.scm (find-extension): Recognize the .orig.tar.gz
extension.
This commit is contained in:
Arun Isaac 2020-07-04 23:44:04 +05:30
parent 8b9b5a7f58
commit 4322561243
No known key found for this signature in database
GPG key ID: 2E25EE8B61802BB3

View file

@ -32,7 +32,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? x url))
(list ".tar.gz" ".tar.bz2" ".tar.xz"
(list ".orig.tar.gz" ".tar.gz" ".tar.bz2" ".tar.xz"
".zip" ".tar" ".tgz" ".tbz" ".love")))
(define (updated-launchpad-url old-package new-version)