pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk In print-pkg-size-this, initialize s before summing...
details: https://anonhg.NetBSD.org/pkgsrc/rev/83c6b3458658
branches: trunk
changeset: 498193:83c6b3458658
user: rillig <rillig%pkgsrc.org@localhost>
date: Mon Aug 15 13:05:18 2005 +0000
description:
In print-pkg-size-this, initialize s before summing up all file sizes. This
results in "0" being printed for empty packages, which had been "" before.
Fixes PR 30955.
diffstat:
mk/bsd.pkg.mk | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 61f313665410 -r 83c6b3458658 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Mon Aug 15 12:59:19 2005 +0000
+++ b/mk/bsd.pkg.mk Mon Aug 15 13:05:18 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1714 2005/08/14 19:52:26 rillig Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1715 2005/08/15 13:05:18 rillig Exp $
#
# This file is in the public domain.
#
@@ -3973,7 +3973,7 @@
| ${SORT} -u \
| ${SED} -e "s/'/'\\\\''/g" -e "s/.*/'&'/" \
| ${XARGS} -n 256 ${LS} -ld \
- | ${AWK} '{ s += $$5; } END { print s; }' \
+ | ${AWK} 'BEGIN { s = 0; } { s += $$5; } END { print s; }'
# Sizes of required pkgs (only)
#
Home |
Main Index |
Thread Index |
Old Index