[pipelight-selinux/epel7] wrapped the complete %%postun-transaction inside the conditional

Björn Esser besser82 at fedoraproject.org
Wed Jul 16 16:14:09 UTC 2014


commit 38f68ffb58a5c86e4e9895a74ed1bdfa051dba02
Author: Björn Esser <bjoern.esser at gmail.com>
Date:   Wed Jul 16 18:13:12 2014 +0200

    wrapped the complete %%postun-transaction inside the conditional

 pipelight-selinux.spec |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/pipelight-selinux.spec b/pipelight-selinux.spec
index 24ac6fc..f686190 100644
--- a/pipelight-selinux.spec
+++ b/pipelight-selinux.spec
@@ -5,7 +5,7 @@
 
 Name:			%{pname}-selinux
 Version:		0.2.0
-Release:		3%{?dist}
+Release:		4%{?dist}
 Summary:		SELinux-policy-module for %{pname}
 
 License:		MIT
@@ -80,10 +80,9 @@ if [ $1 -eq 0 ] ; then
   do
     %{_sbindir}/semodule -s ${_selinuxvariant} -r %{pname} &> /dev/null || :
   done
+  %{_sbindir}/fixfiles -R %{pname} restore || :
+  %{_sbindir}/restorecon -R /home/*/.wine-pipelight* &> /dev/null || :
 fi
-%{_sbindir}/fixfiles -R %{pname} restore || :
-%{_sbindir}/restorecon -R /home/*/.wine-pipelight* &> /dev/null || :
-
 
 %files
 %doc ChangeLog.md LICENSE %{pname}.te README.md
@@ -91,6 +90,9 @@ fi
 
 
 %changelog
+* Wed Jul 16 2014 Björn Esser <bjoern.esser at gmail.com> - 0.2.0-4
+- wrapped the complete %%postun-transaction inside the conditional
+
 * Wed Jul 16 2014 Björn Esser <bjoern.esser at gmail.com> - 0.2.0-3
 - optimized invocation of %%{_sbindir}/restorecon
 - dropped unneded use of %%{_bindir}/find


More information about the scm-commits mailing list