commit:     0c730666252a75f3360f974e429f9fd210072c6d
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  2 11:35:06 2020 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Thu Jul  2 12:26:33 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c730666

sys-libs/libsemanage: don't die in pkg_postinst

Bug: https://bugs.gentoo.org/642634
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 sys-libs/libsemanage/libsemanage-3.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-libs/libsemanage/libsemanage-3.0.ebuild 
b/sys-libs/libsemanage/libsemanage-3.0.ebuild
index 55e47cca920..09d82c6ba64 100644
--- a/sys-libs/libsemanage/libsemanage-3.0.ebuild
+++ b/sys-libs/libsemanage/libsemanage-3.0.ebuild
@@ -129,7 +129,7 @@ pkg_postinst() {
        for POLICY_TYPE in ${POLICY_TYPES} ; do
                if [ ! -d "${EROOT}/var/lib/selinux/${POLICY_TYPE}/active" ] ; 
then
                        einfo "Migrating store ${POLICY_TYPE} (without policy 
rebuild)."
-                       "${EROOT}/usr/libexec/selinux/semanage_migrate_store" 
-n -s "${POLICY_TYPE}" || die "Failed to migrate store ${POLICY_TYPE}"
+                       "${EROOT}/usr/libexec/selinux/semanage_migrate_store" 
-n -s "${POLICY_TYPE}" || ewarn "Failed to migrate store ${POLICY_TYPE}"
                fi
        done
 }

Reply via email to