From 54697f2644844c83ae18480447b1b9cb4b784db7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 24 Jun 2007 06:40:36 +0000 Subject: 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 --- bin/misc-functions.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/misc-functions.sh') 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" -- cgit v1.2.3-1-g7c22