diff options
author | Mark Ferrell <major@homeonderanged.org> | 2014-04-16 07:55:14 -0700 |
---|---|---|
committer | Mark Ferrell <major@homeonderanged.org> | 2014-04-16 07:55:14 -0700 |
commit | e4181e6fdea5cae605bc19a1f4919ee1060605f6 (patch) | |
tree | a1db97e872bae5bf4e5ab7c4e900d3d65a8374c3 /libexec/build-make-distclean | |
parent | 50904ddf4ea7db1cd28e0ff4d73bf18ffa13821b (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.
Diffstat (limited to 'libexec/build-make-distclean')
-rwxr-xr-x | libexec/build-make-distclean | 5 |
1 files changed, 3 insertions, 2 deletions
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 |