Skip to contentSkip to conversation

pkg-stats: cnt should start with 0

PATCH New H Hartley Sweeten 2 participants 2 messages Oct 5, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pkg-stats: cnt should start with 0

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.

---

support/scripts/pkg-stats +1 -1
index 8602b0f..3e89bd1 100755
@@ -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 \
#1 lore raw

PATCH 1/1 pkg-stats: cnt should start with 0

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"H" == H Hartley Sweeten <[email protected]> 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.

Signature · 1 line
Bye, Peter Korsgaard