diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-10-01 22:09:58 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-10-02 08:11:38 +0200 |
commit | f43ffee90882c2d61b46d69728daa7432be297e4 (patch) | |
tree | 78616df51a7950f27f4918b8395b2d1019228aad /po | |
parent | 23dc21f05b54ef63daaea9eb301cfddbc4c82ddb (diff) | |
download | guix-f43ffee90882c2d61b46d69728daa7432be297e4.tar guix-f43ffee90882c2d61b46d69728daa7432be297e4.tar.gz |
gexp: 'local-file' warns when passed a non-literal relative file name.
Fixes <https://bugs.gnu.org/43736>.
Reported by Vitaliy Shatrov <guix.vits@disroot.org>.
* guix/gexp.scm (%local-file): Add #:literal? and #:location.
Emit a warning when LITERAL? is false and FILE is not absolute.
(local-file): In the non-literal case, pass #:location and #:literal?.
* po/guix/POTFILES.in: Add guix/gexp.scm.
* tests/guix-system.sh: Add test for the warning.
Diffstat (limited to 'po')
-rw-r--r-- | po/guix/POTFILES.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/po/guix/POTFILES.in b/po/guix/POTFILES.in index f4d020782c..b877fac9df 100644 --- a/po/guix/POTFILES.in +++ b/po/guix/POTFILES.in @@ -76,6 +76,7 @@ guix/scripts/weather.scm guix/scripts/describe.scm guix/scripts/processes.scm guix/scripts/deploy.scm +guix/gexp.scm guix/gnu-maintenance.scm guix/scripts/container.scm guix/scripts/container/exec.scm |