summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_install_pre.subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr/pkg_install_pre.subr')
-rw-r--r--subr/pkg_install_pre.subr6
1 files changed, 4 insertions, 2 deletions
diff --git a/subr/pkg_install_pre.subr b/subr/pkg_install_pre.subr
index f2273ba4..7ab8a9e2 100644
--- a/subr/pkg_install_pre.subr
+++ b/subr/pkg_install_pre.subr
@@ -4,10 +4,12 @@
pkg_install_pre() {
if [ "${PKG_NAME%flavour_minipix}" != "${PKG_NAME}" ] \
- && [ ${ARG_DEBUG_MINIPIX:-0} -eq 0 ]; then
+ && [ ${ARG_DEBUG_MINIPIX:-0} -eq 0 ] \
+ && [ -e "${PREFIX_MINIPIX}" ]; then
find "${PREFIX_MINIPIX}" -perm /a=x \
\( -type f -or -type l \) > "${WORKDIR}/.stat_minipix.old";
- elif [ "${BUILD}" = release ]; then
+ elif [ "${BUILD}" = release ] \
+ && [ -e "${PREFIX_NATIVE}/bin" ]; then
find "${PREFIX_NATIVE}/bin" -perm /a=x \
\( -type f -or -type l \) > "${WORKDIR}/.stat_native.old";
fi;