summaryrefslogtreecommitdiff
path: root/mk/patch
diff options
context:
space:
mode:
authorjlam <jlam>2006-07-06 22:29:52 +0000
committerjlam <jlam>2006-07-06 22:29:52 +0000
commitdc7af346aac47e74017fb3747b3d76a04373d244 (patch)
tree86e01d40e2b6fbd8f12d013ad3e7e680b240efb2 /mk/patch
parent90ab95f190c275a87ab8fd05386d77758eba31e3 (diff)
downloadpkgsrc-dc7af346aac47e74017fb3747b3d76a04373d244.tar.gz
The cookie files are indirectly made using *-cookie targets, so verify
that they are never being created more than once by inserting a check into the *-cookie targets.
Diffstat (limited to 'mk/patch')
-rw-r--r--mk/patch/patch.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/patch/patch.mk b/mk/patch/patch.mk
index 5d88487346a..e6e0b3e4589 100644
--- a/mk/patch/patch.mk
+++ b/mk/patch/patch.mk
@@ -1,4 +1,4 @@
-# $NetBSD: patch.mk,v 1.6 2006/07/05 22:21:03 jlam Exp $
+# $NetBSD: patch.mk,v 1.7 2006/07/06 22:29:53 jlam Exp $
#
# The following variables may be set in a package Makefile and control
# how pkgsrc patches are applied.
@@ -108,6 +108,7 @@ patch-message:
###
.PHONY: patch-cookie
patch-cookie:
+ ${_PKG_SILENT}${_PKG_DEBUG}${TEST} ! -f ${_PATCH_COOKIE} || ${FALSE}
${_PKG_SILENT}${_PKG_DEBUG} \
if ${TEST} -f ${_PATCH_APPLIED_FILE:Q}; then \
${MV} -f ${_PATCH_APPLIED_FILE:Q} ${_PATCH_COOKIE:Q}; \