From 8fbd71b29bd978fc5a3b7d1c4cd477119bee2995 Mon Sep 17 00:00:00 2001 From: Evan Teran Date: Fri, 18 Mar 2016 21:44:39 +0100 Subject: [PATCH] vmware-bundle.eclass: Improve progress indicator Imported from vmware overlay --- eclass/vmware-bundle.eclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eclass/vmware-bundle.eclass b/eclass/vmware-bundle.eclass index 41f46968dd18..3b019e9ecc50 100644 --- a/eclass/vmware-bundle.eclass +++ b/eclass/vmware-bundle.eclass @@ -72,12 +72,14 @@ vmware-bundle_extract-component() { head -c$((component_manifestSize)) | xsltproc "${T}"/list-component-files.xsl - | while read -r file_offset file_compressedSize file_uncompressedSize file_path ; do if [[ ${file_path} ]] ; then - echo -n '.' file_path="${dest}/${file_path}" mkdir -p "$(dirname "${file_path}")" || die if [[ ${file_compressedSize} -gt 0 ]] ; then + echo -n '.' tail -c+$((offset+component_dataOffset+file_offset+1)) "${component}" 2> /dev/null | head -c$((file_compressedSize)) | gzip -cd > "${file_path}" || die + else + echo -n 'x' fi fi done -- 2.26.2