[packages/polkit] - avoid empty post/postun scriptlets (omit completely if no body)
glen
glen at pld-linux.org
Mon Oct 8 11:19:47 CEST 2012
commit 76637f96bb1f7d773dcd6b6ef01f2401dda33782
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Oct 8 12:19:44 2012 +0300
- avoid empty post/postun scriptlets (omit completely if no body)
polkit.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/polkit.spec b/polkit.spec
index a2c07a3..3cbe9c4 100644
--- a/polkit.spec
+++ b/polkit.spec
@@ -147,11 +147,13 @@ rm -rf $RPM_BUILD_ROOT
%groupadd -g 283 polkitd
%useradd -u 283 -s /bin/false -c "polkitd pseudo user" -g polkitd polkitd
+%if %{with systemd}
%post
-%{?with_systemd:%systemd_post polkit.service}
+%systemd_post polkit.service
%preun
-%{?with_systemd:%systemd_preun polkit.service}
+%systemd_preun polkit.service
+%endif
%postun
if [ "$1" = "0" ]; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/polkit.git/commitdiff/76637f96bb1f7d773dcd6b6ef01f2401dda33782
More information about the pld-cvs-commit
mailing list