summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2005-03-22 22:49:15 +0000
committerxtraeme <xtraeme>2005-03-22 22:49:15 +0000
commit884d0ce78a8a09d54ced5515fba5eabc274bafbc (patch)
treec72914043d19e98659dabb13b926414844869cbd
parent8ab0b5990a6a31ae02c93539f3678391956cc6c5 (diff)
downloadpkgsrc-884d0ce78a8a09d54ced5515fba5eabc274bafbc.tar.gz
In the distclean target, if PKG_RESUME_TRANSFERS is set, clean
the temp files too.
-rw-r--r--mk/bsd.pkg.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index e8473edf572..ddf3748e29f 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1602 2005/03/22 22:20:21 xtraeme Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1603 2005/03/22 22:49:15 xtraeme Exp $
#
# This file is in the public domain.
#
@@ -3593,6 +3593,9 @@ distclean: pre-distclean clean
${_PKG_SILENT}${_PKG_DEBUG}if [ -d ${_DISTDIR} ]; then \
cd ${_DISTDIR} && \
${TEST} -z "${DISTFILES}" || ${RM} -f ${DISTFILES}; \
+ if [ "${PKG_RESUME_TRANSFERS:M[Yy][Ee][Ss]}" ]; then \
+ ${TEST} -z "${DISTFILES}.temp" || ${RM} -f ${DISTFILES}.temp; \
+ fi; \
${TEST} -z "${PATCHFILES}" || ${RM} -f ${PATCHFILES}; \
fi
. if defined(DIST_SUBDIR) && exists(DIST_SUBDIR)