summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr')
-rw-r--r--subr/pkg_clean.subr3
1 files changed, 2 insertions, 1 deletions
diff --git a/subr/pkg_clean.subr b/subr/pkg_clean.subr
index a4a70d63..e8f1899d 100644
--- a/subr/pkg_clean.subr
+++ b/subr/pkg_clean.subr
@@ -4,7 +4,8 @@
pkg_clean() {
if [ "${PKG_NO_CLEAN:-0}" -eq 0 ]; then
- if rtl_lmatch "${ARG_CLEAN_BUILDS}" "build" ","; then
+ if rtl_lmatch "${ARG_CLEAN_BUILDS}" "build" ","\
+ && [ "${PKG_NO_CLEAN_BUILD_DIR:-0}" -eq 0 ]; then
if ! rtl_fileop rm "${PKG_BUILD_DIR}"; then
return 1;
fi;