summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2001-10-20 09:07:13 +0000
committerabs <abs@pkgsrc.org>2001-10-20 09:07:13 +0000
commit783b4399f54e2ed638e3e561a6fb560d14dc053d (patch)
tree21ed6caa01a065edd702cd5a89d4a1ad5afaa00d /mk
parent82ac6112bba87b0b28862ce8e614cb3e07d4277d (diff)
downloadpkgsrc-783b4399f54e2ed638e3e561a6fb560d14dc053d.tar.gz
When working out if an installed package should be left as it
matches one of the DEPENDS, the bulk-build system looked up the package in the INDEXFILE, then used the pkgdir returned to check against the DEPENDS. If for some reason the package was not found in the index file the package was left installed as 'requires installed package'.
Diffstat (limited to 'mk')
-rw-r--r--mk/bulk/bsd.bulk-pkg.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/bulk/bsd.bulk-pkg.mk b/mk/bulk/bsd.bulk-pkg.mk
index 39023775520..e2a81c14855 100644
--- a/mk/bulk/bsd.bulk-pkg.mk
+++ b/mk/bulk/bsd.bulk-pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.bulk-pkg.mk,v 1.28 2001/07/21 19:36:47 dmcmahill Exp $
+# $NetBSD: bsd.bulk-pkg.mk,v 1.29 2001/10/20 09:07:13 abs Exp $
#
# Copyright (c) 1999, 2000 Hubert Feyrer <hubertf@netbsd.org>
@@ -213,6 +213,9 @@ bulk-package:
do \
if [ "${USE_BULK_CACHE}" = "yes" ]; then \
pkgdir=`${GREP} " $$pkgname " ${INDEXFILE} | ${AWK} '{print $$1}'` ;\
+ if [ -z "$$pkgdir" ]; then \
+ pkgdir=unknown ; \
+ fi; \
if ${PKG_INFO} -qe $$pkgname ; then \
${SHCOMMENT} "Remove only unneeded pkgs" ; \
if ! ${EGREP} -q "^${PKGPATH}.* $$pkgdir( |$$)" ${DEPENDSFILE} ; then \