[PATCH 3/6] selinux-policy-2.eclass: drop `|| die` for doins calls
Rahul Sandhu <[email protected]> Sat, 20 Jun 2026 07:21:30 +0000
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <[email protected]> |
Whilst when the calls to doins were originally committed[1] doins did not have EAPI dependent failure behaviour, doins does in EAPI 8[2]. As such, drop the unnecessary `|| die` guards for any calls to doins. [1] https://github.com/gentoo/gentoo-historical-2/commit/00ccca03108395e58f5003c1a0cdbdb0a783b597 [2] https://projects.gentoo.org/pms/8/pms.html#x1-12100012.3.1 Signed-off-by: Rahul Sandhu <[email protected]> --- eclass/selinux-policy-2.eclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eclass/selinux-policy-2.eclass b/eclass/selinux-policy-2.eclass index dcf0b3ccce83..9d5a502c8c7c 100644 --- a/eclass/selinux-policy-2.eclass +++ b/eclass/selinux-policy-2.eclass @@ -261,14 +261,14 @@ selinux-policy-2_src_install() { einfo "Installing ${type} ${mod} policy package" insinto "${BASEDIR}/${type}" if [[ -f "${S}/${type}/${mod}.pp" ]]; then - doins "${S}"/${type}/${mod}.pp || die "Failed to add ${mod}.pp to ${type}" + doins "${S}/${type}/${mod}.pp" elif [[ -f "${S}/${type}/${mod}.cil" ]]; then - doins "${S}"/${type}/${mod}.cil || die "Failed to add ${mod}.cil to ${type}" + doins "${S}/${type}/${mod}.cil" fi if [[ "${POLICY_FILES[@]}" = *"${mod}.if"* ]]; then insinto "${BASEDIR}/${type}/include/3rd_party" - doins "${S}/${type}/${mod}.if" || die "Failed to add ${mod}.if to ${type}" + doins "${S}/${type}/${mod}.if" fi done fi -- 2.54.0