summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-07 06:08:01 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-07 06:08:01 +0000
commit36673e3b9bfbf6b6c2618a99ca693538bdb48d13 (patch)
tree7bc6bf4a7dd9d2d05e75c70dab0f9fd33013254c
parentOptimize quickpkg so that it creates the binary package directly in $PKGDIR/A... (diff)
downloadportage-multirepo-36673e3b9bfbf6b6c2618a99ca693538bdb48d13.tar.gz
portage-multirepo-36673e3b9bfbf6b6c2618a99ca693538bdb48d13.tar.bz2
portage-multirepo-36673e3b9bfbf6b6c2618a99ca693538bdb48d13.zip
Make sure that the package phase has the PYTHONPATH set correctly so that the xpak module is accessible.
svn path=/main/trunk/; revision=4421
-rwxr-xr-xbin/misc-functions.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index d68eee4e..db9efbb1 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -358,6 +358,7 @@ dyn_package() {
export SANDBOX_ON="0"
tar cpvf - ./ | bzip2 -f > "${pkg_tmp}" || die "Failed to create tarball"
cd ..
+ export PYTHONPATH=${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}
python -c "import xpak; t=xpak.tbz2('${pkg_tmp}'); t.recompose('${PORTAGE_BUILDDIR}/build-info')"
if [ $? -ne 0 ]; then
rm -f "${pkg_tmp}"