From: | Ulrich Mueller <ulm@g.o> | ||
---|---|---|---|
To: | David Michael <fedora.dm0@×××××.com> | ||
Cc: | gentoo-dev@l.g.o, selinux@g.o | ||
Subject: | Re: [gentoo-dev] [PATCH 2/2] selinux-policy-2.eclass: drop EAPI 5 | ||
Date: | Tue, 03 Nov 2020 08:05:52 | ||
Message-Id: | ud00udfvu@gentoo.org | ||
In Reply to: | [gentoo-dev] [PATCH 2/2] selinux-policy-2.eclass: drop EAPI 5 by David Michael |
1 | >>>>> On Mon, 02 Nov 2020, David Michael wrote: |
2 | |
3 | > for POLPATCH in ${POLICY_PATCH[@]}; |
4 | > do |
5 | > - if [[ ${EAPI:-0} == 5 ]]; then |
6 | > - epatch "${POLPATCH}" |
7 | > - else |
8 | > - eapply "${POLPATCH}" |
9 | > - fi |
10 | > + eapply "${POLPATCH}" |
11 | > done |
12 | |
13 | eapply can accept multiple parameters, so I think that a simple |
14 | 'eapply ${POLICY_PATCH[@]}' would do the job. |
15 | |
16 | Presumably it would also be cleaner to test if POLICY_PATCH is an array, |
17 | and use '"${POLICY_PATCH[@]}"' if it is but '${POLICY_PATCH}' if it is |
18 | not. |
19 | |
20 | Ulrich |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
Re: [gentoo-dev] [PATCH 2/2] selinux-policy-2.eclass: drop EAPI 5 | Ulrich Mueller <ulm@g.o> |