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
parent
21cdb35b60
commit
66c9bc35ef
|
@ -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)
|
||||
|
|
Reference in New Issue