summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>2002-02-25 12:06:48 +0000
committeragc <agc>2002-02-25 12:06:48 +0000
commit47437cb51573e681ef2d78b79ddcc9338d92a74f (patch)
treeb7df03f3959f3c3af733819d5981eed0a445bbef /mk
parent0861eadc7d1941c186968c8b2b61718446953803 (diff)
downloadpkgsrc-47437cb51573e681ef2d78b79ddcc9338d92a74f.tar.gz
Print the size of the distfile before it is downloaded.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 2471422716e..27db330a45f 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.930 2002/02/25 05:07:45 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.931 2002/02/25 12:06:48 agc Exp $
#
# This file is in the public domain.
#
@@ -1211,6 +1211,7 @@ _FETCH_FILE= \
fi; \
for site in $$sites; do \
${ECHO_MSG} "=> Attempting to fetch $$bfile from $${site}."; \
+ ${AWK} 'NF == 5 && $$1 == "Size" && $$2 == "('$$bfile')" { printf("=> [%s %s]\n", $$4, $$5) }' ${DISTINFO_FILE}; \
if ${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${site}$${bfile} ${FETCH_AFTER_ARGS}; then \
if [ -n "${FAILOVER_FETCH}" -a -f ${DISTINFO_FILE} -a -f ${_DISTDIR}/$$bfile ]; then \
alg=`${AWK} 'NF == 4 && $$2 == "('$$file')" && $$3 == "=" {print $$1;}' ${DISTINFO_FILE}`; \