summaryrefslogtreecommitdiffstats
path: root/src/core/macros.systemd.in
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-07-03 15:40:53 +0200
committerLennart Poettering <lennart@poettering.net>2018-07-03 16:54:02 +0200
commitbe9bf171bbf764997551f8a9b3c2aba5c6a875d3 (patch)
treed4f86b9d0bc631b0c77d1c888bdfe26441203f62 /src/core/macros.systemd.in
parentMerge pull request #9417 from Conan-Kudo/rpm-environmentdir-typo (diff)
downloadsystemd-be9bf171bbf764997551f8a9b3c2aba5c6a875d3.tar.xz
systemd-be9bf171bbf764997551f8a9b3c2aba5c6a875d3.zip
rpm: emit warning when macro with typo is used
Follow-up for a6bb550458. Suggested by @ignatenkobrain. $ rpmbuild --eval %_environmentdir /usr/lib/environment.d $ rpmbuild --eval %_environmnentdir warning: Use %_environmentdir instead /usr/lib/environment.d
Diffstat (limited to '')
-rw-r--r--src/core/macros.systemd.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/macros.systemd.in b/src/core/macros.systemd.in
index abbb42b22f..fe7ca26a34 100644
--- a/src/core/macros.systemd.in
+++ b/src/core/macros.systemd.in
@@ -28,7 +28,7 @@
# Because we had one release with a typo...
# This is temporary (Remove after systemd 240 is released)
-%_environmnentdir %_environmentdir
+%_environmnentdir %{warn:Use %%_environmentdir instead}%_environmentdir
%systemd_requires \
Requires(post): systemd \