[selinux-policy/f16] Do not do preinstall if there is not previous install
Daniel J Walsh
dwalsh at fedoraproject.org
Mon Aug 22 20:33:42 UTC 2011
commit 8bbeb37fc068c8efe124c32ccd4a11aabb71a06b
Author: Dan Walsh <dwalsh at redhat.com>
Date: Mon Aug 22 16:33:20 2011 -0400
Do not do preinstall if there is not previous install
selinux-policy.spec | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/selinux-policy.spec b/selinux-policy.spec
index e97cc3a..47fe4ef 100644
--- a/selinux-policy.spec
+++ b/selinux-policy.spec
@@ -190,7 +190,7 @@ if [ $? = 0 -a "${SELINUXTYPE}" = %1 -a -f ${FILE_CONTEXT}.pre ]; then \
fi;
%define preInstall() \
-if [ -s /etc/selinux/config ]; then \
+if [ $1 -ne 1 ] && [ -s /etc/selinux/config ]; then \
. %{_sysconfdir}/selinux/config; \
FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
if [ "${SELINUXTYPE}" = %1 -a -f ${FILE_CONTEXT} ]; then \
More information about the scm-commits
mailing list