aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-03-28 15:54:10 +0200
committerRicardo Wurmus <rekado@elephly.net>2017-03-28 15:54:10 +0200
commit1a75083b0d532d9874ea073aa16a8c63d0fec685 (patch)
tree579ed1e7847ec59738b7dee5a70bb1aa4f11cd5f
parent2dca8b2d513db69aed3790096bc75c7c096b920c (diff)
downloadguix-1a75083b0d532d9874ea073aa16a8c63d0fec685.tar.gz
guix-1a75083b0d532d9874ea073aa16a8c63d0fec685.zip
import cran: Print package stream in the expected order.
* guix/scripts/import/cran.scm (guix-import-cran): Reverse list of packages.
-rw-r--r--guix/scripts/import/cran.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/guix/scripts/import/cran.scm b/guix/scripts/import/cran.scm
index 66c660ae14..c9a9eab762 100644
--- a/guix/scripts/import/cran.scm
+++ b/guix/scripts/import/cran.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
-;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -99,8 +99,8 @@ Import and convert the CRAN package for PACKAGE-NAME.\n"))
`(define-public ,(string->symbol name)
,pkg))
(_ #f))
- (stream->list (recursive-import package-name
- (or (assoc-ref opts 'repo) 'cran))))
+ (reverse (stream->list (recursive-import package-name
+ (or (assoc-ref opts 'repo) 'cran)))))
;; Single import
(let ((sexp (cran->guix-package package-name
(or (assoc-ref opts 'repo) 'cran))))