summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorabs <abs>2001-10-20 09:07:13 +0000
committerabs <abs>2001-10-20 09:07:13 +0000
commit5a7757c700a4be1cf17e42f35bb911404b547e5b (patch)
tree21ed6caa01a065edd702cd5a89d4a1ad5afaa00d /mk
parent585d53770fbc5026f6e978f3685da1bd87c1b545 (diff)
downloadpkgsrc-5a7757c700a4be1cf17e42f35bb911404b547e5b.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 \