mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
profiles: Fix removal of the next-to-last item in a profile.
Fixes a bug whereby removing the next-to-last item in a profile would lead to an obscure error, as shown at <http://lists.gnu.org/archive/html/guix-devel/2014-12/msg00292.html>. Reported by Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>. * guix/profiles.scm (profile-derivation)[inputs]: Use (list info-dir "out") instead of just INFO-DIR.
This commit is contained in:
parent
ebf5ad46db
commit
bea26837e8
1 changed files with 7 additions and 1 deletions
|
@ -414,7 +414,13 @@ (define* (profile-derivation manifest #:key (info-dir? #t))
|
|||
(return #f))))
|
||||
(define inputs
|
||||
(if info-dir
|
||||
(cons info-dir (manifest-inputs manifest))
|
||||
;; XXX: Here we use the tuple (INFO-DIR "out") just so that the list
|
||||
;; is unambiguous for the gexp code when MANIFEST has a single input
|
||||
;; denoted as a string (the pattern (DRV STRING) is normally
|
||||
;; interpreted in a gexp as "the STRING output of DRV".). See
|
||||
;; <http://lists.gnu.org/archive/html/guix-devel/2014-12/msg00292.html>.
|
||||
(cons (list info-dir "out")
|
||||
(manifest-inputs manifest))
|
||||
(manifest-inputs manifest)))
|
||||
|
||||
(define builder
|
||||
|
|
Loading…
Reference in a new issue