mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
import: github: Tiny cosmetic change.
* guix/import/github.scm (find-extension): Use a one-argument lambda.
This commit is contained in:
parent
f40dfcd055
commit
405d043ddd
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ (define (json-fetch* url)
|
||||||
(define (find-extension url)
|
(define (find-extension url)
|
||||||
"Return the extension of the archive e.g. '.tar.gz' given a URL, or
|
"Return the extension of the archive e.g. '.tar.gz' given a URL, or
|
||||||
false if none is recognized"
|
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")))
|
(list ".tar.gz" ".tar.bz2" ".tar.xz" ".zip" ".tar" ".tgz")))
|
||||||
|
|
||||||
(define (updated-github-url old-package new-version)
|
(define (updated-github-url old-package new-version)
|
||||||
|
|
Loading…
Reference in a new issue