aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-04-16 07:55:14 -0700
committerMark Ferrell <major@homeonderanged.org>2014-04-16 07:55:14 -0700
commite4181e6fdea5cae605bc19a1f4919ee1060605f6 (patch)
treea1db97e872bae5bf4e5ab7c4e900d3d65a8374c3
parent50904ddf4ea7db1cd28e0ff4d73bf18ffa13821b (diff)
Fixup clean/distclean
* Clean tmp files for a package out of BUILDER_TMPDIR during clean/distclean. This is particularly relivant after we added prepped/compiled staging data to temp.
-rwxr-xr-xlibexec/build-make-clean4
-rwxr-xr-xlibexec/build-make-distclean5
2 files changed, 5 insertions, 4 deletions
diff --git a/libexec/build-make-clean b/libexec/build-make-clean
index ddc000c..8c5834d 100755
--- a/libexec/build-make-clean
+++ b/libexec/build-make-clean
@@ -15,8 +15,8 @@ build_make_clean()
# this file.
cat "var/db/binpkgs/${CATEGORY}/${NAME}" | xargs -0 rm -f &
fi
- if [ -d "${W}" ]; then
- rm -rf "${W}" &
+ if [ -d "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" ]; then
+ rm -rf "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" &
fi
wait
diff --git a/libexec/build-make-distclean b/libexec/build-make-distclean
index ba39c6e..f3cc91a 100755
--- a/libexec/build-make-distclean
+++ b/libexec/build-make-distclean
@@ -14,8 +14,9 @@ build_make_distclean()
# this file.
cat "var/db/binpkgs/${CATEGORY}/${NAME}" | xargs -0 rm -f &
fi
- if [ -d "${W}" ]; then
- rm -rf "${W}" &
+
+ if [ -d "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" ]; then
+ rm -rf "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" &
fi
wait