[Top][All Lists]

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

05/07: environment: Improve error reporting for '-l'.

From: Ludovic Courtès
Subject: 05/07: environment: Improve error reporting for '-l'.
Date: Wed, 01 Jul 2015 21:31:18 +0000

civodul pushed a commit to branch master
in repository guix.

commit d70389c423101d9ee26937e5d63945ac228fe6ee
Author: Ludovic Courtès <address@hidden>
Date:   Tue Jun 30 23:31:24 2015 +0200

    environment: Improve error reporting for '-l'.
    This fixes two problems:
      1. Load errors would print an ugly backtrace.
      2. When FILE was an absolute name, 'load' was passed an incorrect file
    * guix/scripts/environment.scm (options/resolve-packages): Use 'load*' 
      of 'load'.
 guix/scripts/environment.scm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index c0a7da1..00c4df7 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -200,7 +200,7 @@ packages."
                          (package-outputs package)))))
                 (('load . file)
                  ;; Add all the outputs of the package defined in FILE.
-                 (let ((package (load (string-append (getcwd) "/" file))))
+                 (let ((package (load* file (make-user-module '()))))
                    (map (lambda (output)
                           `(package ,package ,output))
                         (package-outputs package))))

reply via email to

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