summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Teran <evan.teran@gmail.com>2016-03-18 21:44:39 +0100
committerAndreas K. Huettel <dilfridge@gentoo.org>2016-03-18 21:45:50 +0100
commit8fbd71b29bd978fc5a3b7d1c4cd477119bee2995 (patch)
tree6c7f4b7240594ac91e5ddf5982a91ea69c08f004
parentapp-emulation/vmware-tools: Remove old (diff)
downloadgentoo-8fbd71b29bd978fc5a3b7d1c4cd477119bee2995.tar.gz
gentoo-8fbd71b29bd978fc5a3b7d1c4cd477119bee2995.tar.bz2
gentoo-8fbd71b29bd978fc5a3b7d1c4cd477119bee2995.zip
vmware-bundle.eclass: Improve progress indicator
Imported from vmware overlay
-rw-r--r--eclass/vmware-bundle.eclass4
1 files changed, 3 insertions, 1 deletions
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