diff options
author | fredb <fredb> | 2000-02-28 22:13:31 +0000 |
---|---|---|
committer | fredb <fredb> | 2000-02-28 22:13:31 +0000 |
commit | db72922dd2c1e78ca6a1c12550f47abdd8724560 (patch) | |
tree | adf0004c72d09f3db33c682a4b26af5ba555ce25 /mk | |
parent | 7c5f957974b246c1cb1c3d93a268f349f4ab22d6 (diff) | |
download | pkgsrc-db72922dd2c1e78ca6a1c12550f47abdd8724560.tar.gz |
Special case DEINSTALLDEPENDS=ALL in deinstall target, so that update
target won't delete BUILD_DEPENDS packages. No one should be setting
DEINSTALLDEPENDS to ALL in /etc/mk.conf--it's done unconditionally by
the update target. Setting DEINSTALLDEPENDS to anything but NO or ALL
will still cause the BUILD_DEPENDS to be pkg_deleted.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 65dbde1ce9e..cc9a5a4b2d5 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.409 2000/02/28 01:38:37 hubertf Exp $ +# $NetBSD: bsd.pkg.mk,v 1.410 2000/02/28 22:13:31 fredb Exp $ # # This file is in the public domain. # @@ -1727,7 +1727,7 @@ root-deinstall: ${ECHO} Running ${PKG_DELETE} ${root-install-flags} $$found ; \ ${PKG_DELETE} ${root-install-flags} $$found || ${TRUE} ; \ fi -.if (${DEINSTALLDEPENDS} != "NO") +.if (${DEINSTALLDEPENDS} != "NO") && (${DEINSTALLDEPENDS} != "ALL") @${SHCOMMENT} Also remove BUILD_DEPENDS: .for pkg in ${BUILD_DEPENDS:C/:.*$//} ${_PKG_SILENT}${_PKG_DEBUG} \ |