doebuild: fix bug #349273
authorZac Medico <zmedico@gentoo.org>
Tue, 21 Dec 2010 16:29:39 +0000 (08:29 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 21 Dec 2010 16:47:38 +0000 (08:47 -0800)
commit944dd516b4983aa06b8e7d60ba1ea75eb1d05706
tree3af582425931626838fc46aedc316668b916eb7d
parent6222d0b0bf13cbbfac8e9a30c98f6ff9f40dc938
doebuild: fix bug #349273

Since commit 75d3130fc8293fff68389b8fed44b8d47a0abe80, doebuild()
for the 'setup' phase triggers the actionmap_deps code path in order
to call the 'pretend' phase as a dependency. This path previously
assumed a portdbapi instance, which may not hold for some api consumers
such as entropy. Therefore, fix the code path to work with other dbapi
types.
bin/ebuild
pym/portage/package/ebuild/doebuild.py