summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/prepstrip9
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index cd28ec111..0cca3292a 100755
--- a/bin/prepstrip
+++ b/bin/prepstrip
@@ -5,9 +5,8 @@
source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
-if [[ " ${FEATURES} " == *" nostrip "* ]] || \
- [[ " ${RESTRICT} " == *" nostrip "* ]] || \
- [[ " ${RESTRICT} " == *" strip "* ]]
+if hasq nostrip ${FEATURES} ${RESTRICT} || \
+ hasq strip RESTRICT
then
exit 0
fi
@@ -25,7 +24,7 @@ save_elf_debug() {
local x=$1
local y="${D}/usr/lib/debug/${x:${#D}:${#x}}.debug"
- [[ " ${FEATURES} " != *" splitdebug "* ]] && return 0
+ hasq splitdebug ${FEATURES} || return 0
# dont save debug info twice.
[[ ${x:7} == ".debug" ]] && return 0
@@ -35,7 +34,7 @@ save_elf_debug() {
${OBJCOPY} --add-gnu-debuglink="${y}" "${x}"
chmod a-x,o-w "${y}"
- [[ " ${FEATURES} " != *" installsources "* ]] && return 0
+ hasq installsources ${FEATURES} || return 0
if [[ -x "/usr/bin/debugedit" ]] ; then
debugedit -b "${WORKDIR}" -d /usr/src/debug/${PF} -l "${T}"/debug.sources "${x}"