3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

import: github: Tiny cosmetic change.

* guix/import/github.scm (find-extension): Use a one-argument lambda.
This commit is contained in:
Ludovic Courtès 2016-05-31 22:11:51 +02:00
parent f40dfcd055
commit 405d043ddd
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -43,7 +43,7 @@ failure."
(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))
(find (lambda (x) (string-suffix? x url))
(list ".tar.gz" ".tar.bz2" ".tar.xz" ".zip" ".tar" ".tgz")))
(define (updated-github-url old-package new-version)