Repository: cloudstack
Updated Branches:
  refs/heads/master 45597766a -> 67ff7dac8


CLOUDSTACK-7654 fixed issues with zip format templates.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/67ff7dac
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/67ff7dac
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/67ff7dac

Branch: refs/heads/master
Commit: 67ff7dac8290560715629241e09fe9fb0359c990
Parents: 4559776
Author: Rajesh Battala <[email protected]>
Authored: Tue Oct 7 12:38:43 2014 +0530
Committer: Rajesh Battala <[email protected]>
Committed: Tue Oct 7 12:39:09 2014 +0530

----------------------------------------------------------------------
 scripts/installer/createtmplt.sh         | 2 +-
 scripts/storage/qcow2/createtmplt.sh     | 2 +-
 scripts/storage/secondary/createtmplt.sh | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/67ff7dac/scripts/installer/createtmplt.sh
----------------------------------------------------------------------
diff --git a/scripts/installer/createtmplt.sh b/scripts/installer/createtmplt.sh
index bd539dd..95ecd9c 100755
--- a/scripts/installer/createtmplt.sh
+++ b/scripts/installer/createtmplt.sh
@@ -74,7 +74,7 @@ uncompress() {
          ;;
   bzip2)  bunzip2 -c $1 > $tmpfile
          ;;
-  ZIP)  unzip -p $1 | cat > $tmpfile
+  [zZ][iI][pP])  unzip -p $1 | cat > $tmpfile
         ;;
   *)   printf "$1"
         return 0

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/67ff7dac/scripts/storage/qcow2/createtmplt.sh
----------------------------------------------------------------------
diff --git a/scripts/storage/qcow2/createtmplt.sh 
b/scripts/storage/qcow2/createtmplt.sh
index 8d6dd0d..38bb561 100755
--- a/scripts/storage/qcow2/createtmplt.sh
+++ b/scripts/storage/qcow2/createtmplt.sh
@@ -74,7 +74,7 @@ uncompress() {
          ;;
   bzip2)  bunzip2 -c $1 > $tmpfile
          ;;
-  ZIP)  unzip -p $1 | cat > $tmpfile
+  [zZ][iI][pP])  unzip -p $1 | cat > $tmpfile
         ;;
   *)   printf "$1"
         return 0

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/67ff7dac/scripts/storage/secondary/createtmplt.sh
----------------------------------------------------------------------
diff --git a/scripts/storage/secondary/createtmplt.sh 
b/scripts/storage/secondary/createtmplt.sh
index 6b31232..358022b 100755
--- a/scripts/storage/secondary/createtmplt.sh
+++ b/scripts/storage/secondary/createtmplt.sh
@@ -73,7 +73,7 @@ is_compressed() {
          ;;
   bzip2)  ctype="bz2"
          ;;
-  ZIP)  ctype="zip"
+  [zZ][iI][pP])  ctype="zip"
         ;;
     *) echo "File $1 does not appear to be compressed" >&2
         return 1
@@ -92,7 +92,7 @@ uncompress() {
          ;;
   bzip2)  bunzip2 -q -c $1 > $tmpfile
          ;;
-  ZIP)  unzip -q -p $1 | cat > $tmpfile
+  [zZ][iI][pP])  unzip -q -p $1 | cat > $tmpfile
         ;;
     *) printf "$1"
        return 0

Reply via email to