Use the EbuildFetcher class to implement async fetch for the EbuildBuild
authorZac Medico <zmedico@gentoo.org>
Wed, 9 Jul 2008 21:39:39 +0000 (21:39 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 9 Jul 2008 21:39:39 +0000 (21:39 -0000)
commitb307ee9613493a10124014118fa2569c3f1fefd3
treef78120847ca942ab3b492dd4272bdc8fd6a6671c
parent378a30a81042fdc76206b3d183e3403d7214e094
Use the EbuildFetcher class to implement async fetch for the EbuildBuild
class. When in background mode, fetch output is logged to emerge-fetch.log.
This solves a problem with calling doebuild(returnpid=1) and then doebuild
calling fetch() synchronously. In that case, doebuild would return an int
if fetch() failed (including when running pkg_nofetch), which would lead
to a TypeError since doebuild(returnpid=1) is supposed to return a list
containing a spawned pid.

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