* [Buildroot] [PATCH] pkg-stats: cnt should start with 0
@ 2011-10-05 16:47 H Hartley Sweeten
2011-10-05 17:10 ` Peter Korsgaard
0 siblings, 1 reply; 2+ messages in thread
From: H Hartley Sweeten @ 2011-10-05 16:47 UTC (permalink / raw)
To: buildroot
The package count, cnt, should start with an initial value of 0. It
is incremented as each package *.mk file is checked. Starting with a
value of 1 makes the first ID = 2 and results in the TOTAL being off
by 1.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
---
diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
index 8602b0f..3e89bd1 100755
--- a/support/scripts/pkg-stats
+++ b/support/scripts/pkg-stats
@@ -73,7 +73,7 @@ convert_to_generic_target=0
convert_to_generic_host=0
convert_to_autotools=0
total_patch_count=0
-cnt=1
+cnt=0
for i in $(find package/ -name '*.mk') ; do
if test \
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] pkg-stats: cnt should start with 0
2011-10-05 16:47 [Buildroot] [PATCH] pkg-stats: cnt should start with 0 H Hartley Sweeten
@ 2011-10-05 17:10 ` Peter Korsgaard
0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2011-10-05 17:10 UTC (permalink / raw)
To: buildroot
>>>>> "H" == H Hartley Sweeten <hartleys@visionengravers.com> writes:
H> The package count, cnt, should start with an initial value of 0. It
H> is incremented as each package *.mk file is checked. Starting with a
H> value of 1 makes the first ID = 2 and results in the TOTAL being off
H> by 1.
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-05 17:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-05 16:47 [Buildroot] [PATCH] pkg-stats: cnt should start with 0 H Hartley Sweeten
2011-10-05 17:10 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox