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

Collapse All | Expand All

(-)/usr/portage/eclass/unpacker.eclass (-2 / +20 lines)
Lines 253-260 Link Here
253
253
254
	unpack_banner "${deb}"
254
	unpack_banner "${deb}"
255
255
256
	ar x "${deb}"
256
	# on AIX ar doesn't work out as ar used a different format
257
	unpack ./data.tar*
257
	if [[ ${EPREFIX} ]]; then
258
		{
259
			read # global header
260
			[[ ${REPLY} = "!<arch>" ]] || die "${deb} does not seem to be a deb archive"
261
			local f timestamp uid gid mode size magic
262
			while read f timestamp uid gid mode size magic; do
263
				[[ -n ${f} && -n ${size} ]] || continue # ignore empty lines
264
				if [[ ${f} = "data.tar"* ]]; then
265
					head -c "${size}" > "${f}"
266
				else
267
					head -c "${size}" > /dev/null # trash it
268
				fi
269
			done
270
		} < "${deb}"
271
	else
272
		ar x "${deb}"
273
	fi
274
275
	unpacker ./data.tar*
258
}
276
}
259
277
260
# @FUNCTION: _unpacker
278
# @FUNCTION: _unpacker

Return to bug 408801