aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2018-03-26 12:12:51 -0700
committerZac Medico <zmedico@gentoo.org>2018-03-27 22:09:15 -0700
commit9aaa652c86b21b925bc56fafd57b561b86ace0f8 (patch)
tree1d148f9e8555521a9efeadd19a18c4f600203f4d /bin/eapi.sh
parentprepstrip: rename to bin/estrip (refactor for EAPI 7 dostrip) (diff)
downloadportage-9aaa652c86b21b925bc56fafd57b561b86ace0f8.tar.gz
portage-9aaa652c86b21b925bc56fafd57b561b86ace0f8.tar.bz2
portage-9aaa652c86b21b925bc56fafd57b561b86ace0f8.zip
Add dostrip for EAPI 7
This patch includes the essential parts of the dostrip implementation from portage-mgorny. All of the prepstrip code has moved to bin/estrip, without any changes except the addition of argument parsing for estrip --ignore, --queue, and --deque modes which are equivalent to the corresponding ecompressdir modes. Due to overlap, also ban the non-standard prepstrip and prepallstrip helpers in EAPI 7, with a die message suggesting to use 'dostrip' instead. Also ignore the non-standard STRIP_MASK variable for EAPI 7. Bug: https://bugs.gentoo.org/203891
Diffstat (limited to 'bin/eapi.sh')
-rw-r--r--bin/eapi.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/eapi.sh b/bin/eapi.sh
index 326eb387e..f9a4744e9 100644
--- a/bin/eapi.sh
+++ b/bin/eapi.sh
@@ -76,6 +76,10 @@ ___eapi_has_docompress() {
[[ ! ${1-${EAPI-0}} =~ ^(0|1|2|3)$ ]]
}
+___eapi_has_dostrip() {
+ [[ ${1-${EAPI-0}} =~ ^(0|1|2|3|4|4-python|4-slot-abi|5|5-hdepend|5-progress|6)$ ]]
+}
+
___eapi_has_nonfatal() {
[[ ! ${1-${EAPI-0}} =~ ^(0|1|2|3)$ ]]
}