OSDN Git Service

allow use of unzip version 6.0
authorDoug Zongker <dougz@android.com>
Tue, 10 Nov 2009 02:19:48 +0000 (18:19 -0800)
committerDoug Zongker <dougz@android.com>
Tue, 10 Nov 2009 02:19:48 +0000 (18:19 -0800)
Unzip 6.0 changes the name of the fourth column in the "unzip -lv"
output from "Ratio" to "Cmpr".  Allow either name so that
dump-package-stats works with both unzip 5 and unzip 6.

tools/dump-package-stats

index 589bab5..d11e727 100755 (executable)
@@ -102,7 +102,7 @@ do
                 $1 != "Length" ||
                 $2 != "Method" ||
                 $3 != "Size" ||
-                $4 != "Ratio" ||
+                ($4 != "Ratio" && $4 != "Cmpr") ||
                 $5 != "Date" ||
                 $6 != "Time" ||
                 $7 != "CRC-32" ||