diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2025-09-04 14:28:42 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-09-11 22:27:47 +0200 |
| commit | a5ac56f8830928205ce5424082486d509f898dc7 (patch) | |
| tree | af3a8abf4396027b275f1bc9cb40a3a6ca68a6d7 /gnu/packages/python-web.scm | |
| parent | fd4402f09a766a10e796c03eae9c8342a4746b39 (diff) | |
packages: ‘package-field-location’ returns a <location> for atoms.
Fixes guix/guix#1975.
When using ‘read’, ‘package-field-location’ would not get source location for
atoms such as symbols, typically making it impossible to get the location of
the value of a field list (build-system gnu-build-system). This fixes that.
* guix/packages.scm (field-value-location): New procedure.
(package-field-location): Use it instead of inline code.
* tests/packages.scm ("package-field-location"): Test the ‘build-system’
field.
Reported-by: Nicolas Graves <ngraves@ngraves.fr>
Change-Id: I98c694bb6f1999fa9ca80e145fa016640067af55
Diffstat (limited to 'gnu/packages/python-web.scm')
0 files changed, 0 insertions, 0 deletions
