From: Ben Gras Date: Thu, 13 Apr 2006 13:49:08 +0000 (+0000) Subject: Sum wrong way round X-Git-Tag: v3.1.2a~15 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=57245468ca711467a0c8ad9bbca1e0d035006f0c;p=minix.git Sum wrong way round --- diff --git a/commands/scripts/packman.sh b/commands/scripts/packman.sh index 722e27bae..2eadfbf81 100644 --- a/commands/scripts/packman.sh +++ b/commands/scripts/packman.sh @@ -62,15 +62,16 @@ else cont=y while [ $cont = y ] do n="`wc -l $cdpackages | awk '{ print $1 }'`" sourcef=$CDSRC/SizeMB - if [ -f $sourcef ] - then sourcesize=" (`cat $sourcef` MB uncompressed)" - else sourcesize="" - fi - binf=$CDPACK/SizeMB if [ -f $binf -a -f $sourcef ] then sourcemb="`cat $sourcef`" binmb="`cat $binf`" - binsize=" (`expr $sourcemb + $binmb` MB uncompressed)" + sourcesize=" (`expr $binmb + $sourcemb` MB uncompressed)" + else sourcesize="" + fi + binf=$CDPACK/SizeMB + if [ -f $binf ] + then binmb="`cat $binf`" + binsize=" ($binmb MB uncompressed)" else binsize="" fi