If pkg_nofetch needs to be spawned inside fetch() and it happens that
authorZac Medico <zmedico@gentoo.org>
Sun, 7 Dec 2008 00:19:15 +0000 (00:19 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 7 Dec 2008 00:19:15 +0000 (00:19 -0000)
commit3da8bd8d5fda0cf2c89aab8e2dc1203fd25f08d4
tree54209ae0cf4892379c375291d7ba76904ce12479
parent705edaea05e96aa54d3c0a9bb68ae881b6bfc53c
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.

svn path=/main/trunk/; revision=12174
pym/portage/__init__.py