commit 76637f96bb1f7d773dcd6b6ef01f2401dda33782
Author: Elan Ruusamäe <[email protected]>
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
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit