Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 559798 | Differences between
and this patch

Collapse All | Expand All

(-)vmware-bundle.eclass (-3 / +8 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2011 Gentoo Foundation
1
# Copyright 1999-2011 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/eclass/vmware-bundle.eclass,v 1.2 2011/08/22 04:46:32 vapier Exp $
3
# $Id$
4
4
5
# @ECLASS: vmware-bundle.eclass
5
# @ECLASS: vmware-bundle.eclass
6
# @MAINTAINER:
6
# @MAINTAINER:
Lines 38-43 Link Here
38
		while read -r component_offset component_size component_name ; do
38
		while read -r component_offset component_size component_name ; do
39
			if [[ ${component_name} == ${component} ]] ; then
39
			if [[ ${component_name} == ${component} ]] ; then
40
				ebegin "Extracting '${component_name}' component from '$(basename "${bundle}")'"
40
				ebegin "Extracting '${component_name}' component from '$(basename "${bundle}")'"
41
				echo "${component_name}" >> "${T}"/skipped_files.txt
41
				vmware-bundle_extract-component "${bundle}" "${dest}" $((bundle_dataOffset+component_offset))
42
				vmware-bundle_extract-component "${bundle}" "${dest}" $((bundle_dataOffset+component_offset))
42
				eend
43
				eend
43
			fi
44
			fi
Lines 75-82 Link Here
75
				echo -n '.'
76
				echo -n '.'
76
				file_path="${dest}/${file_path}"
77
				file_path="${dest}/${file_path}"
77
				mkdir -p "$(dirname "${file_path}")" || die
78
				mkdir -p "$(dirname "${file_path}")" || die
78
				tail -c+$((offset+component_dataOffset+file_offset+1)) "${component}" 2> /dev/null |
79
				if [[ ${file_compressedSize} -gt 0 ]] ; then
79
					head -c$((file_compressedSize)) | gzip -cd > "${file_path}" || die
80
					tail -c+$((offset+component_dataOffset+file_offset+1)) "${component}" 2> /dev/null |
81
						head -c$((file_compressedSize)) | gzip -cd > "${file_path}" || die
82
				else
83
					echo "${file_path}" >> "${T}"/skipped_files.txt
84
				fi
80
			fi
85
			fi
81
		done
86
		done
82
	echo
87
	echo

Return to bug 559798