vmware-bundle.eclass: Improve progress indicator
authorEvan Teran <evan.teran@gmail.com>
Fri, 18 Mar 2016 20:44:39 +0000 (21:44 +0100)
committerAndreas K. Huettel <dilfridge@gentoo.org>
Fri, 18 Mar 2016 20:45:50 +0000 (21:45 +0100)
Imported from vmware overlay

eclass/vmware-bundle.eclass

index 41f46968dd1805935277f4f646838d9021e3c521..3b019e9ecc50ca94d7849fbed0ad299a9ab9f66e 100644 (file)
@@ -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