[node-patches] Change in ovirt-node[master]: Get the size of the real iso file not the link file
wenyi at linux.vnet.ibm.com
wenyi at linux.vnet.ibm.com
Fri Apr 12 08:07:49 UTC 2013
Wenyi Gao has uploaded a new change for review.
Change subject: Get the size of the real iso file not the link file
......................................................................
Get the size of the real iso file not the link file
ovirt-node-image.iso is a link file and iso size need
to get from the real iso file via "ls".
Change-Id: I5bd39f86805b0ec3ead5b41d3d0623f49831ca32
Signed-off-by: Wenyi Gao <wenyi at linux.vnet.ibm.com>
---
M autobuild.sh
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/28/13828/1
diff --git a/autobuild.sh b/autobuild.sh
index f08df22..c6f2a29 100755
--- a/autobuild.sh
+++ b/autobuild.sh
@@ -95,8 +95,8 @@
# Add additional information to mini-manifest
# Check size of iso and report in mini-manifest
echo "======================================================" >> ovirt-node-image.mini-manifest
-size=$(ls -l ovirt-node-image.iso | awk '{print $5}')
-human_size=$(ls -lh ovirt-node-image.iso | awk '{print $5}')
+size=$(readlink ovirt-node-image.iso | xargs ls -l | awk '{print $5}')
+human_size=$(readlink ovirt-node-image.iso | xargs -lh | awk '{print $5}')
echo " Iso Size: $size ($human_size)" >> ovirt-node-image.mini-manifest
html_location=/var/www/html/builder/$(basename $(dirname ${AUTOBUILD_SOURCE_ROOT}))
--
To view, visit http://gerrit.ovirt.org/13828
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5bd39f86805b0ec3ead5b41d3d0623f49831ca32
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Wenyi Gao <wenyi at linux.vnet.ibm.com>
More information about the node-patches
mailing list