summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>2002-04-18 15:23:43 +0000
committeragc <agc>2002-04-18 15:23:43 +0000
commit02b87e9e887672a29d1f82a5ecff7ae685f37534 (patch)
treedd9093a0caa017db9d4c2e3511e3f83805eec2ed /mk
parent4c0c0786c80473d6430971f7043cdcf1cec6b5a1 (diff)
downloadpkgsrc-02b87e9e887672a29d1f82a5ecff7ae685f37534.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.mk4
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"; \