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
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
${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}"