]> Zhao Yanbai Git Server - minix.git/commitdiff
Sum wrong way round
authorBen Gras <ben@minix3.org>
Thu, 13 Apr 2006 13:49:08 +0000 (13:49 +0000)
committerBen Gras <ben@minix3.org>
Thu, 13 Apr 2006 13:49:08 +0000 (13:49 +0000)
commands/scripts/packman.sh

index 722e27baecd6f14a65370f5b4c2bccc1a88a0416..2eadfbf81190c844bac191ff302dc6222ec54405 100644 (file)
@@ -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