sec-policy/selinux-base-policy: postinst should not die
authorJason Zaman <perfinion@gentoo.org>
Sun, 4 Feb 2018 13:59:24 +0000 (21:59 +0800)
committerJason Zaman <perfinion@gentoo.org>
Sun, 4 Feb 2018 14:20:16 +0000 (22:20 +0800)
postinst is not allowed to die and it breaks catalyst stage building.

commit f03eee7017c288deabdfc593079397d480ea473a fixed this for some
versions, this fixes all the other ebuilds too that were missed.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

sec-policy/selinux-base-policy/selinux-base-policy-2.20170204-r1.ebuild
sec-policy/selinux-base-policy/selinux-base-policy-2.20170204-r2.ebuild
sec-policy/selinux-base-policy/selinux-base-policy-2.20170204-r3.ebuild
sec-policy/selinux-base-policy/selinux-base-policy-2.20170204-r4.ebuild
sec-policy/selinux-base-policy/selinux-base-policy-2.20170805-r2.ebuild
sec-policy/selinux-base-policy/selinux-base-policy-2.20170805-r3.ebuild
sec-policy/selinux-base-policy/selinux-base-policy-2.20170805-r4.ebuild
sec-policy/selinux-base-policy/selinux-base-policy-2.20180114-r1.ebuild
sec-policy/selinux-base-policy/selinux-base-policy-9999.ebuild

index 6782cb719303161e821ac3a8875d66a558860e6c..159a4384e56dd5173221356b9ec9f9f305565249 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -104,9 +104,9 @@ pkg_postinst() {
        for i in ${POLICY_TYPES}; do
                einfo "Inserting the following modules, with base, into the $i module store: ${MODS}"
 
-               cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}"
+               cd /usr/share/selinux/${i}
 
-               semodule -s ${i} ${COMMAND} || die "Failed to load in base and modules ${MODS} in the $i policy store"
+               semodule -s ${i} ${COMMAND}
        done
 
        # Relabel depending packages
index dfe1dece31a59d22c7174318ea3214d567c99e2d..5627947be22d9786a5281abaf5b6b0b9dee4b019 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -104,9 +104,9 @@ pkg_postinst() {
        for i in ${POLICY_TYPES}; do
                einfo "Inserting the following modules, with base, into the $i module store: ${MODS}"
 
-               cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}"
+               cd /usr/share/selinux/${i}
 
-               semodule -s ${i} ${COMMAND} || die "Failed to load in base and modules ${MODS} in the $i policy store"
+               semodule -s ${i} ${COMMAND}
        done
 
        # Relabel depending packages
index dfe1dece31a59d22c7174318ea3214d567c99e2d..5627947be22d9786a5281abaf5b6b0b9dee4b019 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -104,9 +104,9 @@ pkg_postinst() {
        for i in ${POLICY_TYPES}; do
                einfo "Inserting the following modules, with base, into the $i module store: ${MODS}"
 
-               cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}"
+               cd /usr/share/selinux/${i}
 
-               semodule -s ${i} ${COMMAND} || die "Failed to load in base and modules ${MODS} in the $i policy store"
+               semodule -s ${i} ${COMMAND}
        done
 
        # Relabel depending packages
index dfe1dece31a59d22c7174318ea3214d567c99e2d..5627947be22d9786a5281abaf5b6b0b9dee4b019 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -104,9 +104,9 @@ pkg_postinst() {
        for i in ${POLICY_TYPES}; do
                einfo "Inserting the following modules, with base, into the $i module store: ${MODS}"
 
-               cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}"
+               cd /usr/share/selinux/${i}
 
-               semodule -s ${i} ${COMMAND} || die "Failed to load in base and modules ${MODS} in the $i policy store"
+               semodule -s ${i} ${COMMAND}
        done
 
        # Relabel depending packages
index c3e966881051ade2059ee1f3a0ff6d37404a2705..27177f647158ab6658058fd24d84ca59252bd6d1 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -104,9 +104,9 @@ pkg_postinst() {
        for i in ${POLICY_TYPES}; do
                einfo "Inserting the following modules, with base, into the $i module store: ${MODS}"
 
-               cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}"
+               cd /usr/share/selinux/${i}
 
-               semodule -s ${i} ${COMMAND} || die "Failed to load in base and modules ${MODS} in the $i policy store"
+               semodule -s ${i} ${COMMAND}
        done
 
        # Relabel depending packages
index 8ef5919d34774e5c71794c6aacfd654afc042e52..27177f647158ab6658058fd24d84ca59252bd6d1 100644 (file)
@@ -104,7 +104,7 @@ pkg_postinst() {
        for i in ${POLICY_TYPES}; do
                einfo "Inserting the following modules, with base, into the $i module store: ${MODS}"
 
-               cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}"
+               cd /usr/share/selinux/${i}
 
                semodule -s ${i} ${COMMAND}
        done
index 33d98c80502656bfb8200928b8b2a36f594ba960..e58899c1855964440edb1f926bd6a03de4c18cbd 100644 (file)
@@ -104,7 +104,7 @@ pkg_postinst() {
        for i in ${POLICY_TYPES}; do
                einfo "Inserting the following modules, with base, into the $i module store: ${MODS}"
 
-               cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}"
+               cd /usr/share/selinux/${i}
 
                semodule -s ${i} ${COMMAND}
        done
index 5dadfcb0904b4491b8b2c071d386df26f00c492b..e58899c1855964440edb1f926bd6a03de4c18cbd 100644 (file)
@@ -104,9 +104,9 @@ pkg_postinst() {
        for i in ${POLICY_TYPES}; do
                einfo "Inserting the following modules, with base, into the $i module store: ${MODS}"
 
-               cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}"
+               cd /usr/share/selinux/${i}
 
-               semodule -s ${i} ${COMMAND} || die "Failed to load in base and modules ${MODS} in the $i policy store"
+               semodule -s ${i} ${COMMAND}
        done
 
        # Relabel depending packages
index 111bd57377313a713e6ce54bbcfdcc33d98e1382..e58899c1855964440edb1f926bd6a03de4c18cbd 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -104,9 +104,9 @@ pkg_postinst() {
        for i in ${POLICY_TYPES}; do
                einfo "Inserting the following modules, with base, into the $i module store: ${MODS}"
 
-               cd /usr/share/selinux/${i} || die "Could not enter /usr/share/selinux/${i}"
+               cd /usr/share/selinux/${i}
 
-               semodule -s ${i} ${COMMAND} || die "Failed to load in base and modules ${MODS} in the $i policy store"
+               semodule -s ${i} ${COMMAND}
        done
 
        # Relabel depending packages