]> Zhao Yanbai Git Server - minix.git/commitdiff
2nd is sum.
authorBen Gras <ben@minix3.org>
Thu, 13 Apr 2006 01:59:43 +0000 (01:59 +0000)
committerBen Gras <ben@minix3.org>
Thu, 13 Apr 2006 01:59:43 +0000 (01:59 +0000)
commands/scripts/packman.sh

index f2c6bdca5353cde01b72cdda6e716ba7444019cc..722e27baecd6f14a65370f5b4c2bccc1a88a0416 100644 (file)
@@ -67,8 +67,10 @@ else cont=y
                else    sourcesize=""
                fi
                binf=$CDPACK/SizeMB
-               if [ -f $binf ]
-               then    binsize=" (`cat $binf` MB uncompressed)"
+               if [ -f $binf -a -f $sourcef ]
+               then    sourcemb="`cat $sourcef`"
+                       binmb="`cat $binf`"
+                       binsize=" (`expr $sourcemb + $binmb` MB uncompressed)"
                else    binsize=""
                fi