[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: import: github: Tiny cosmetic change.

From: Ludovic Courtès
Subject: 01/02: import: github: Tiny cosmetic change.
Date: Tue, 31 May 2016 21:39:20 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit 405d043ddd46a2ae5dbd68f2487529e805e8fc1f
Author: Ludovic Courtès <address@hidden>
Date:   Tue May 31 22:11:51 2016 +0200

    import: github: Tiny cosmetic change.
    * guix/import/github.scm (find-extension): Use a one-argument lambda.
 guix/import/github.scm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/import/github.scm b/guix/import/github.scm
index bbf916c..9ba9a10 100644
--- a/guix/import/github.scm
+++ b/guix/import/github.scm
@@ -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)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]