pkgmeek: respect -kw flag even before building

This commit is contained in:
John McQuah 2024-09-07 15:41:34 +00:00
parent 2dbcad710d
commit e39224cd61

View File

@ -58,7 +58,8 @@ done
# The effective user should at least have write permissions on $PWD
[ -w "$(dirname "$work")" ] || work="$(pwd)"/work
rm -rf "$work"; mkdir -p "$work"/{src,pkg} && cd "$work"
[ "$PKGMK_KEEP_WORK" = yes ] || rm -rf "$work"
mkdir -p "$work"/{src,pkg} && cd "$work"
# Skip the retrieval of sources if the user asked for '-utd' or '-uf'.
[[ "$PKGMK_MTIME_ONLY $PKGMK_UPDATE_FOOTPRINT" =~ yes ]] && [ -e "$PKGMK_PACKAGE_DIR/$package" ] \