scripts/unpack: clean stale package build dir

This commit is contained in:
Jonas Karlman 2016-09-11 15:33:59 +02:00
parent 3389a8bd61
commit 89de68843e

View File

@ -52,6 +52,11 @@ for i in $BUILD/$1-*; do
fi
done
if [ -d "$PKG_BUILD" -a ! -f "$STAMP" ]; then
# stale pkg build dir
$SCRIPTS/clean $1
fi
[ -f "$STAMP" ] && exit 0
printf "%${BUILD_INDENT}c ${boldcyan}UNPACK${endcolor} $1\n" ' '>&$SILENT_OUT