diff options
author | tron <tron@pkgsrc.org> | 2000-08-21 09:41:07 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2000-08-21 09:41:07 +0000 |
commit | fd2c580f420e6c774412d0965d8902e5f714160f (patch) | |
tree | b0219839481aa5c7c2d5f66cd73abc54d9e13996 /mk/bsd.pkg.mk | |
parent | 78d8c952699aa868cf26a34a1d1110b71d725bf7 (diff) | |
download | pkgsrc-fd2c580f420e6c774412d0965d8902e5f714160f.tar.gz |
Evalute correct value for "OBJECT_FMT" in case multiple packages match
a dependence.
Diffstat (limited to 'mk/bsd.pkg.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 00a2418ec45..d91201633e6 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.547 2000/08/19 15:32:15 hubertf Exp $ +# $NetBSD: bsd.pkg.mk,v 1.548 2000/08/21 09:41:07 tron Exp $ # # This file is in the public domain. # @@ -2526,7 +2526,7 @@ install-run-depends: uptodate-pkgtools dir="${dep:C/[^:]*://:C/:.*$//}"; \ found="`${PKG_INFO} -e \"$$pkg\" || ${TRUE}`"; \ if [ "$$found" != "" ]; then \ - instobjfmt=`${PKG_INFO} -B "$$pkg" | ${AWK} '/^OBJECT_FMT/ {print $$2}'`; \ + instobjfmt=`${PKG_INFO} -B "$$pkg" | ${AWK} '/^OBJECT_FMT/ {print $$2}' | ${HEAD} -1`; \ if [ "$$instobjfmt" = "" ]; then \ if [ "X${WARN_NO_OBJECT_FMT}" != "Xno" ]; then \ ${ECHO} "WARNING: Unknown object format for installed package $$pkg - continuing"; \ |