summaryrefslogtreecommitdiffstats
path: root/bin/misc-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-24 06:40:36 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-24 06:40:36 +0000
commit54697f2644844c83ae18480447b1b9cb4b784db7 (patch)
treefbfd0285eac43792fb5636e6991fc5919ec53fe0 /bin/misc-functions.sh
parentf0657c0e9646b6d42261846b80e44b2f953d0ccd (diff)
downloadportage-54697f2644844c83ae18480447b1b9cb4b784db7.tar.gz
portage-54697f2644844c83ae18480447b1b9cb4b784db7.tar.bz2
portage-54697f2644844c83ae18480447b1b9cb4b784db7.zip
Provide a default value for PORTAGE_BINPKG_TMPFILE in case the package phase is called by the ebuild command.
svn path=/main/trunk/; revision=6985
Diffstat (limited to 'bin/misc-functions.sh')
-rwxr-xr-xbin/misc-functions.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
index de349e029..1c4697875 100755
--- a/bin/misc-functions.sh
+++ b/bin/misc-functions.sh
@@ -501,6 +501,8 @@ dyn_package() {
# Sandbox is disabled in case the user wants to use a symlink
# for $PKGDIR and/or $PKGDIR/All.
export SANDBOX_ON="0"
+ [ -z "${PORTAGE_BINPKG_TMPFILE}" ] && \
+ PORTAGE_BINPKG_TMPFILE="${PKGDIR}/${CATEGORY}/${PVR}.tbz2"
mkdir -p "${PORTAGE_BINPKG_TMPFILE%/*}" || die "mkdir failed"
tar ${tar_options} -cf - . | bzip2 -f > "${PORTAGE_BINPKG_TMPFILE}" || \
die "Failed to create tarball"