diff --git a/scripts/pkgmeek b/scripts/pkgmeek index 91512e8..d4b545e 100755 --- a/scripts/pkgmeek +++ b/scripts/pkgmeek @@ -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" ] \