Make listzip.pl tolerant of being run under SBS - further fix for Bug 2509 RCL_3 PDK_3.0.i
authorWilliam Roberts <williamr@symbian.org>
Wed, 05 May 2010 18:02:07 +0100
branchRCL_3
changeset 39 8c93132f4c49
parent 35 e5a9edf0be25
child 45 dc5f0de57af5
Make listzip.pl tolerant of being run under SBS - further fix for Bug 2509
sbsv1_os/e32toolp/genutil/listzip.pl
--- a/sbsv1_os/e32toolp/genutil/listzip.pl	Wed Apr 28 22:23:47 2010 +0100
+++ b/sbsv1_os/e32toolp/genutil/listzip.pl	Wed May 05 18:02:07 2010 +0100
@@ -32,6 +32,9 @@
     _print_err_and_die("$prefix is not a directory.") unless -d $prefix;
     _print_err_and_die("$zipf doesn't exist.") unless -f $zipf;
 
+    $prefix =~ s/\/\//\//g;    # SBS provides "Q://", so reduce the doubling
+    $prefix =~ s/\/$//;        # remove trailing /, if any
+		
     my @raw_data = qx/unzip -l $zipf/;
 
     for (@raw_data)