If pkg_nofetch needs to be spawned inside fetch() and it happens that
authorZac Medico <zmedico@gentoo.org>
Sun, 7 Dec 2008 00:20:43 +0000 (00:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 7 Dec 2008 00:20:43 +0000 (00:20 -0000)
commitf37bac791acecf764df101f14c5692d2ff0a3b4f
treed8ce91dc9452d3b10d3e4ed3a28cac9ffac9aad6
parent7b9798ac894deda537c8d255c10edfa1d294a89a
If pkg_nofetch needs to be spawned inside fetch() and it happens that
PORTAGE_BUILDDIR doesn't exist, like when called by digestgen(), use
mkdtemp to create a private temporary directory so that pkg_nofetch
can be spawned (directory needed to satisfy safe $PWD requirement of
bug #239560). This is more user friendly since before the pkg_nofetch
phase would simply be skipped in this case. Thanks to Petteri Räty
<betelgeuse@g.o> for reporting. (trunk r12174)

svn path=/main/branches/2.1.6/; revision=12175
pym/portage/__init__.py