diff options
author | agc <agc@pkgsrc.org> | 2002-04-18 15:23:43 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2002-04-18 15:23:43 +0000 |
commit | adfe02d503762127e5fc812bc7a903c465f98bb0 (patch) | |
tree | dd9093a0caa017db9d4c2e3511e3f83805eec2ed /mk | |
parent | 25b1faaeb8a37a569b7805fdb729d7f4e520dd3c (diff) | |
download | pkgsrc-adfe02d503762127e5fc812bc7a903c465f98bb0.tar.gz |
There is no point in piping the output of awk through a pipe which does
"head -1" - use awk to do the work for us.
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 c8fead170fa..43873c822d0 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.963 2002/04/17 09:55:59 hubertf Exp $ +# $NetBSD: bsd.pkg.mk,v 1.964 2002/04/18 15:23:43 agc Exp $ # # This file is in the public domain. # @@ -3218,7 +3218,7 @@ install-depends: uptodate-pkgtools fi; \ fi; \ if [ "$$found" != "" ]; then \ - instobjfmt=`${PKG_INFO} -B "$$pkg" | ${AWK} '/^OBJECT_FMT/ {print $$2}' | ${HEAD} -1`; \ + instobjfmt=`${PKG_INFO} -B "$$pkg" | ${AWK} '/^OBJECT_FMT/ {print $$2; exit}'`; \ if [ "$$instobjfmt" = "" ]; then \ if [ "X${WARN_NO_OBJECT_FMT}" != "Xno" ]; then \ ${ECHO} "WARNING: Unknown object format for installed package $$pkg - continuing"; \ |