From 57245468ca711467a0c8ad9bbca1e0d035006f0c Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 13 Apr 2006 13:49:08 +0000 Subject: [PATCH] Sum wrong way round --- commands/scripts/packman.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 -- 2.44.0