mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
packages: 'package-field-location' preserves the original file name.
This fixes a regression introduced in
9a38bed2cf
.
* guix/packages.scm (package-field-location): Do not shadow the 'file'
variable.
This commit is contained in:
parent
21cdb35b60
commit
66c9bc35ef
1 changed files with 2 additions and 2 deletions
|
@ -476,11 +476,11 @@ (define (goto port line column)
|
|||
(match (package-location package)
|
||||
(($ <location> file line column)
|
||||
(match (search-path %load-path file)
|
||||
((? string? file)
|
||||
((? string? file-found)
|
||||
(catch 'system-error
|
||||
(lambda ()
|
||||
;; In general we want to keep relative file names for modules.
|
||||
(call-with-input-file file
|
||||
(call-with-input-file file-found
|
||||
(lambda (port)
|
||||
(goto port line column)
|
||||
(match (read port)
|
||||
|
|
Loading…
Reference in a new issue