diff options
author | rh <rh> | 2002-04-05 23:26:49 +0000 |
---|---|---|
committer | rh <rh> | 2002-04-05 23:26:49 +0000 |
commit | b8e13d6ecf85f88230b69d0b807c2ab52ee380bb (patch) | |
tree | 50d3a1397aaf1e8b3f5ab9629e513e7a67905046 /mk | |
parent | d34d04134764bf5996eef91916ec0a5e65a4a788 (diff) | |
download | pkgsrc-b8e13d6ecf85f88230b69d0b807c2ab52ee380bb.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.mk | 7 |
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} |