guix-commits
[Top][All Lists]
Advanced

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

210/211: import/cran: download: Accept optional REF argument.


From: guix-commits
Subject: 210/211: import/cran: download: Accept optional REF argument.
Date: Tue, 20 Sep 2022 06:24:45 -0400 (EDT)

rekado pushed a commit to branch wip-r
in repository guix.

commit 235c0b317f8f2f50c874ce6e8c64b34317a75402
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Aug 12 18:59:11 2022 +0200

    import/cran: download: Accept optional REF argument.
    
    * guix/import/cran.scm (download): Accept REF argument for git downloads.
---
 guix/import/cran.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/import/cran.scm b/guix/import/cran.scm
index 4e1ce7c010..69d01b5f7c 100644
--- a/guix/import/cran.scm
+++ b/guix/import/cran.scm
@@ -200,11 +200,11 @@ bioconductor package NAME, or #F if the package is 
unknown."
 ;; Little helper to download URLs only once.
 (define download
   (memoize
-   (lambda* (url #:key method)
+   (lambda* (url #:key method (ref '()))
      (with-store store
        (cond
         ((eq? method 'git)
-         (latest-repository-commit store url))
+         (latest-repository-commit store url #:ref ref))
         ((eq? method 'hg)
          (call-with-temporary-directory
           (lambda (dir)



reply via email to

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