From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 378D959CA5 for ; Fri, 18 Mar 2016 20:01:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F030621C034; Fri, 18 Mar 2016 20:01:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 89EB121C034 for ; Fri, 18 Mar 2016 20:01:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 31DB83408A2 for ; Fri, 18 Mar 2016 20:01:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8085E847 for ; Fri, 18 Mar 2016 20:01:29 +0000 (UTC) From: "Andreas Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Hüttel" Message-ID: <1458331230.cfd9f3f0404505fcff8bdd960f4f938290636a94.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/vmware-bundle.eclass X-VCS-Directories: eclass/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas Hüttel X-VCS-Revision: cfd9f3f0404505fcff8bdd960f4f938290636a94 X-VCS-Branch: master Date: Fri, 18 Mar 2016 20:01:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 70d56594-dbfd-495a-93dd-f274c1bffb7f X-Archives-Hash: 0355454fa8f53e184d26d97d143bd422 commit: cfd9f3f0404505fcff8bdd960f4f938290636a94 Author: Fabio Rossi inwind it> AuthorDate: Sun Dec 13 18:24:28 2015 +0000 Commit: Andreas Hüttel gentoo org> CommitDate: Fri Mar 18 20:00:30 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfd9f3f0 vmware-bundle.eclass: skip empty files Required for >=app-emulation/vmware-workstation-12. eclass/vmware-bundle.eclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eclass/vmware-bundle.eclass b/eclass/vmware-bundle.eclass index 6a897bb..41f4696 100644 --- a/eclass/vmware-bundle.eclass +++ b/eclass/vmware-bundle.eclass @@ -75,8 +75,10 @@ vmware-bundle_extract-component() { echo -n '.' file_path="${dest}/${file_path}" mkdir -p "$(dirname "${file_path}")" || die - tail -c+$((offset+component_dataOffset+file_offset+1)) "${component}" 2> /dev/null | - head -c$((file_compressedSize)) | gzip -cd > "${file_path}" || die + if [[ ${file_compressedSize} -gt 0 ]] ; then + tail -c+$((offset+component_dataOffset+file_offset+1)) "${component}" 2> /dev/null | + head -c$((file_compressedSize)) | gzip -cd > "${file_path}" || die + fi fi done echo