summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_clean.subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr/pkg_clean.subr')
-rw-r--r--subr/pkg_clean.subr3
1 files changed, 3 insertions, 0 deletions
diff --git a/subr/pkg_clean.subr b/subr/pkg_clean.subr
index 71a025c5..f9f9a204 100644
--- a/subr/pkg_clean.subr
+++ b/subr/pkg_clean.subr
@@ -4,6 +4,9 @@
pkg_clean() {
local _dir="";
+ if [ -n "${PKG_NO_CLEAN}" ]; then
+ return 0;
+ fi;
if ex_rtl_lmatch "${ARG_CLEAN_BUILDS}" , build; then
ex_rtl_fileop rm "${PKG_BUILD_DIR}";
fi;