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

Collapse All | Expand All

(-)bin/misc-functions.sh (-8 / +9 lines)
Lines 406-421 Link Here
406
dyn_package() {
406
dyn_package() {
407
	cd "${PORTAGE_BUILDDIR}/image"
407
	cd "${PORTAGE_BUILDDIR}/image"
408
	install_mask "${PORTAGE_BUILDDIR}/image" ${PKG_INSTALL_MASK}
408
	install_mask "${PORTAGE_BUILDDIR}/image" ${PKG_INSTALL_MASK}
409
	tar cpvf - ./ | bzip2 -f > ../bin.tar.bz2 || die "Failed to create tarball"
409
	local pkg_dest="${PKGDIR}/All/${PF}.tbz2"
410
	local pkg_tmp="${PKGDIR}/All/${PF}.tbz2.$$"
411
	addwrite "${PKGDIR}"
412
	tar cpvf - ./ | bzip2 -f > "${pkg_tmp}" || die "Failed to create tarball"
410
	cd ..
413
	cd ..
411
	xpak build-info inf.xpak
414
	python -c "import xpak; t=xpak.tbz2('${pkg_tmp}'); t.recompose('${PORTAGE_BUILDDIR}/build-info')"
412
	tbz2tool join bin.tar.bz2 inf.xpak "${PF}.tbz2"
415
	if [ $? -ne 0 ]; then
413
	addwrite "${PKGDIR}"
416
		rm -f "${pkg_tmp}"
414
	mv -f "${PF}.tbz2" "${PKGDIR}/All" || die "Failed to move tbz2 to ${PKGDIR}/All"
417
		die "Failed to append metadata to the tbz2 file"
415
	rm -f inf.xpak bin.tar.bz2
416
	if [ ! -d "${PKGDIR}/${CATEGORY}" ]; then
417
		install -d "${PKGDIR}/${CATEGORY}"
418
	fi
418
	fi
419
	mv -f "${pkg_tmp}" "${pkg_dest}" || die "Failed to move tbz2 to ${pkg_dest}"
419
	ln -sf "../All/${PF}.tbz2" "${PKGDIR}/${CATEGORY}/${PF}.tbz2" || die "Failed to create symlink in ${PKGDIR}/${CATEGORY}"
420
	ln -sf "../All/${PF}.tbz2" "${PKGDIR}/${CATEGORY}/${PF}.tbz2" || die "Failed to create symlink in ${PKGDIR}/${CATEGORY}"
420
	echo ">>> Done."
421
	echo ">>> Done."
421
	cd "${PORTAGE_BUILDDIR}"
422
	cd "${PORTAGE_BUILDDIR}"

Return to bug 127374