Provide a default value for PORTAGE_BINPKG_TMPFILE in case the package phase is calle...
authorZac Medico <zmedico@gentoo.org>
Sun, 24 Jun 2007 06:40:36 +0000 (06:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 24 Jun 2007 06:40:36 +0000 (06:40 -0000)
svn path=/main/trunk/; revision=6985

bin/misc-functions.sh

index de349e029955642a114f163a449fc1141d0c0264..1c469787590a920fde225a17a3469c2a34dd1170 100755 (executable)
@@ -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"