diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2017-01-22 22:25:26 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2017-01-23 22:21:23 +0100 |
| commit | c5746f239964a72642ac56640b8ff490d5bfa673 (patch) | |
| tree | 4d6428ad6d157580067d0af63600f90bb200b045 | |
| parent | 08a78c2fdec4697569c377bae91b269ee74014b2 (diff) | |
guix package: Honor the order of profiles when -p appears multiple times.
* guix/scripts/package.scm (process-query): Reverse the order of
PROFILES.
* tests/guix-package-net.sh: Test it with '--search-paths'.
| -rw-r--r-- | guix/scripts/package.scm | 4 | ||||
| -rw-r--r-- | tests/guix-package-net.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index 90e7fa22989..79622ac149c 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> | 3 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> |
| 4 | ;;; Copyright © 2013, 2015 Mark H Weaver <mhw@netris.org> | 4 | ;;; Copyright © 2013, 2015 Mark H Weaver <mhw@netris.org> |
| 5 | ;;; Copyright © 2014, 2016 Alex Kost <alezost@gmail.com> | 5 | ;;; Copyright © 2014, 2016 Alex Kost <alezost@gmail.com> |
| @@ -666,7 +666,7 @@ processed, #f otherwise." | |||
| 666 | (_ #f)) | 666 | (_ #f)) |
| 667 | opts) | 667 | opts) |
| 668 | (() (list %current-profile)) | 668 | (() (list %current-profile)) |
| 669 | (lst lst))) | 669 | (lst (reverse lst)))) |
| 670 | (profile (match profiles | 670 | (profile (match profiles |
| 671 | ((head tail ...) head)))) | 671 | ((head tail ...) head)))) |
| 672 | (match (assoc-ref opts 'query) | 672 | (match (assoc-ref opts 'query) |
diff --git a/tests/guix-package-net.sh b/tests/guix-package-net.sh index 35ef6ff1a02..1eff6abba37 100644 --- a/tests/guix-package-net.sh +++ b/tests/guix-package-net.sh | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | # GNU Guix --- Functional package management for GNU | 1 | # GNU Guix --- Functional package management for GNU |
| 2 | # Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> | 2 | # Copyright © 2012, 2013, 2014, 2015, 2017 Ludovic Courtès <ludo@gnu.org> |
| 3 | # Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> | 3 | # Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> |
| 4 | # | 4 | # |
| 5 | # This file is part of GNU Guix. | 5 | # This file is part of GNU Guix. |
| @@ -165,7 +165,7 @@ guix package --bootstrap -p "$profile_alt" -i gcc-bootstrap | |||
| 165 | if guix package -p "$profile" --search-paths | grep LIBRARY_PATH | 165 | if guix package -p "$profile" --search-paths | grep LIBRARY_PATH |
| 166 | then false; fi | 166 | then false; fi |
| 167 | guix package -p "$profile" -p "$profile_alt" --search-paths \ | 167 | guix package -p "$profile" -p "$profile_alt" --search-paths \ |
| 168 | | grep "LIBRARY_PATH.*$profile/lib" | 168 | | grep "LIBRARY_PATH.*$profile/lib.$profile_alt/lib" |
| 169 | 169 | ||
| 170 | # | 170 | # |
| 171 | # Try with the default profile. | 171 | # Try with the default profile. |
