summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2002-04-05 23:26:49 +0000
committerrh <rh@pkgsrc.org>2002-04-05 23:26:49 +0000
commit8f6639efa48f2255bf2518452a5d33ab89b9df6f (patch)
tree50d3a1397aaf1e8b3f5ab9629e513e7a67905046 /mk
parentdaf1326a05dc2a089eff3282cf676796ba70301b (diff)
downloadpkgsrc-8f6639efa48f2255bf2518452a5d33ab89b9df6f.tar.gz
Do not attempt to update a package (deleting the package and all its
dependencies) if IGNORE is set. This puts the 'update' target in line with 'install', 'package', and other targets that use the same checks.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 3ffea00056c..6f377bb22d9 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.957 2002/04/05 11:39:25 fredb Exp $
+# $NetBSD: bsd.pkg.mk,v 1.958 2002/04/05 23:26:49 rh Exp $
#
# This file is in the public domain.
#
@@ -1088,7 +1088,7 @@ IGNORE+= "${PKGNAME} is not available for ${MACHINE_PLATFORM}"
#
. if defined(IGNORE)
fetch checksum extract patch configure all build install package \
-install-depends:
+update install-depends:
. if defined(IGNORE_SILENT)
@${DO_NADA}
. else
@@ -2542,6 +2542,7 @@ real-su-deinstall:
# The 'update' target can be used to update a package and all
# currently installed packages that depend upon this package.
+.if !target(update)
.if exists(${DDIR})
RESUMEUPDATE?= YES
CLEAR_DIRLIST?= NO
@@ -2611,6 +2612,8 @@ clean-update:
${ECHO_MSG} "${_PKGSRC_IN}> \`\`${MAKE} update REINSTALL=YES'' instead!"
.endif
+.endif # !target(update)
+
update-dirlist:
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} -p ${WRKDIR}