commit:     8fbd71b29bd978fc5a3b7d1c4cd477119bee2995
Author:     Evan Teran <evan.teran <AT> gmail <DOT> com>
AuthorDate: Fri Mar 18 20:44:39 2016 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Fri Mar 18 20:45:50 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fbd71b2

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 41f4696..3b019e9 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

Reply via email to