diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-03-09 21:03:25 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-03-09 21:03:25 +0000 |
commit | 3f97da4a44583dc747043f0b973adca167051ba4 (patch) | |
tree | 80b69914ecff7cfebf8cabc63d5c4f24b55842f2 | |
parent | 63e4ec8a14bdd89e07bca301e6dd75a259e3befb (diff) | |
download | portage-3f97da4a44583dc747043f0b973adca167051ba4.tar.gz portage-3f97da4a44583dc747043f0b973adca167051ba4.tar.bz2 portage-3f97da4a44583dc747043f0b973adca167051ba4.zip |
import portage.xpak to avoid deprecation warning
svn path=/main/trunk/; revision=6202
-rwxr-xr-x | bin/misc-functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 2a6013863..c5e74dff4 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -515,8 +515,8 @@ dyn_package() { tar ${tar_options} -cf - . | 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')" + export PYTHONPATH="${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}:${PYTHONPATH}" + python -c "from portage import xpak; t=xpak.tbz2('${pkg_tmp}'); t.recompose('${PORTAGE_BUILDDIR}/build-info')" if [ $? -ne 0 ]; then rm -f "${pkg_tmp}" die "Failed to append metadata to the tbz2 file" |