aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2006-06-28 22:46:18 +0000
committerMark Linimon <linimon@FreeBSD.org>2006-06-28 22:46:18 +0000
commitc693c172bc327db039fc95046389ca9bc89a36a0 (patch)
tree1d45c1768c5fe7495ed1614c9bb1c9ceb4b0cbb1 /Tools
parent0575cb38c9abce0ea56456fbd60ab05ae83b78cf (diff)
downloadports-c693c172bc327db039fc95046389ca9bc89a36a0.tar.gz
ports-c693c172bc327db039fc95046389ca9bc89a36a0.zip
Notes
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/dopackagestats6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/dopackagestats b/Tools/portbuild/scripts/dopackagestats
index f981ae250623..e077d96f780d 100755
--- a/Tools/portbuild/scripts/dopackagestats
+++ b/Tools/portbuild/scripts/dopackagestats
@@ -86,7 +86,11 @@ for arch in ${SUPPORTED_ARCHS}; do
echo "<td align='right'>$n_duds</td>" >> ${TMPFILE}
# column: missing count
- n_missing=`expr $n_index - $n_packages - $n_errors - $n_duds`
+ if [ $n_index -ne 0 ]; then
+ n_missing=`expr $n_index - $n_packages - $n_errors - $n_duds`
+ else # index currently being rebuilt
+ n_missing=0
+ fi
echo "<td align='right'>$n_missing</td>" >> ${TMPFILE}
# column: done flag