From 6f05c3530d4c849ce22dfc87a752b4edf62bcbd4 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Tue, 13 Nov 2012 22:21:06 +0100 Subject: [PATCH] bug #1652: Bug while determining image size from the Marketplace. Path from SZTAKI LPDS --- src/datastore_mad/remotes/libfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datastore_mad/remotes/libfs.sh b/src/datastore_mad/remotes/libfs.sh index 1cacf89dce..280e3a94c4 100644 --- a/src/datastore_mad/remotes/libfs.sh +++ b/src/datastore_mad/remotes/libfs.sh @@ -131,7 +131,7 @@ function fs_size { if [ $? -eq 0 ]; then #URL is from market place - SIZE=`wget -O - -S --no-check-certificate $BASE_URL 2>&1|grep -E "^ *\"size\": \"?[0-9]+\"?$"|tr -dc 0-9` + SIZE=`wget -O - -S --no-check-certificate $BASE_URL 2>&1|grep -E "^ *\"size\": \"?[0-9]+\"?.$"|tr -dc 0-9` else #Not a marketplace URL SIZE=`wget -S --spider --no-check-certificate $1 2>&1 | grep Content-Length | cut -d':' -f2`