me
/
guix
Archived
1
0
Fork 0

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.
master
Ludovic Courtès 2021-02-22 17:58:11 +01:00
parent 21cdb35b60
commit 66c9bc35ef
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 2 deletions

View File

@ -476,11 +476,11 @@ object."
(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)