summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2020-10-02 22:13:51 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2020-10-02 22:27:00 +0200
commitee43ec5782c3fe23b99e84da86fa3f43d3eb1c56 (patch)
tree55204cd3e8c4777f4071b69d7fc2a4269b34374b /spec
parent99b6173f10fe7e2dbd54bb8734667ca8df69905e (diff)
downloadlvm2-ee43ec5782c3fe23b99e84da86fa3f43d3eb1c56.tar.gz
rpm: bare words are no longer supported
Update for new rpm requirement and use "..." words.
Diffstat (limited to 'spec')
-rw-r--r--spec/macros.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/macros.inc b/spec/macros.inc
index 99ee9a06a..d4e99e6ae 100644
--- a/spec/macros.inc
+++ b/spec/macros.inc
@@ -58,11 +58,11 @@ fi \
%%if %%{enable_systemd} \
if [ $1 = 0 ]; then \
systemctl --no-reload disable lvm2-%%{-s*}.%%{-t*} > /dev/null 2>&1 || : \
- %%if %%{-t*} == socket \
+ %%if "%%{-t*}" == "socket" \
systemctl --no-reload disable lvm2-%%{-s*}.service > /dev/null 2>&1 || : \
%%endif \
systemctl stop lvm2-%%{-s*}.%%{-t*} > /dev/null 2>&1 || : \
- %%if %%{-t*} == socket \
+ %%if "%%{-t*}" == "socket" \
systemctl stop lvm2-%%{-s*}.service > /dev/null 2>&1 || : \
%%endif \
fi \