aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
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