pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/tv-derecurse]: pkgsrc/mk Remove the cookie before creating it, so tha...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9f85ae4c8a09
branches:  tv-derecurse
changeset: 483974:9f85ae4c8a09
user:      tv <tv%pkgsrc.org@localhost>
date:      Sun Dec 05 03:42:35 2004 +0000

description:
Remove the cookie before creating it, so that su-created cookies can
be clobbered by non-su operations.

diffstat:

 mk/bsd.pkg.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 55edce2e8d55 -r 9f85ae4c8a09 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Fri Dec 03 19:15:00 2004 +0000
+++ b/mk/bsd.pkg.mk     Sun Dec 05 03:42:35 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1540.2.7 2004/12/03 19:15:00 tv Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1540.2.8 2004/12/05 03:42:35 tv Exp $
 #
 # This file is in the public domain.
 #
@@ -1605,7 +1605,7 @@
 
 .  for targ in ${_PKG_PHASES_WRKDIR}
 ${${targ}_COOKIE}: real-${targ}
-       ${_PKG_SILENT}${_PKG_DEBUG}${ECHO} ${PKGNAME} >${${targ}_COOKIE}
+       ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f $@ && ${ECHO} ${PKGNAME} >$@
 .  endfor
 
 # mark a stage as complete if its cookie (and all parent cookies) exist



Home | Main Index | Thread Index | Old Index