diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-10-11 22:51:08 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-10-11 22:51:08 +0000 |
commit | 0f66235bce301fc21cddf080a0b436d5cb748f4a (patch) | |
tree | 47ab866eddfa3ef1beb9b039fa080403efdd4f25 /bin/misc-functions.sh | |
parent | 81748795daf2672431ac94380bddadb782a54416 (diff) | |
download | portage-0f66235bce301fc21cddf080a0b436d5cb748f4a.tar.gz portage-0f66235bce301fc21cddf080a0b436d5cb748f4a.tar.bz2 portage-0f66235bce301fc21cddf080a0b436d5cb748f4a.zip |
Add a xpak-helper.py script, so that shell code always calls python via
a shebang. (trunk r14575)
svn path=/main/branches/2.1.7/; revision=14576
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-x | bin/misc-functions.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 671a06935..ef8b0a54a 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -711,7 +711,8 @@ dyn_package() { bzip2 -cf > "$PORTAGE_BINPKG_TMPFILE" assert "failed to pack binary package: '$PORTAGE_BINPKG_TMPFILE'" EPYTHON= PYTHONPATH=${PORTAGE_PYM_PATH}${PYTHONPATH:+:}${PYTHONPATH} \ - python -c "from portage import xpak; t=xpak.tbz2('${PORTAGE_BINPKG_TMPFILE}'); t.recompose('${PORTAGE_BUILDDIR}/build-info')" + "$PORTAGE_BIN_PATH"/xpak-helper.py recompose \ + "$PORTAGE_BINPKG_TMPFILE" "$PORTAGE_BUILDDIR/build-info" if [ $? -ne 0 ]; then rm -f "${PORTAGE_BINPKG_TMPFILE}" die "Failed to append metadata to the tbz2 file" |