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:29:39 +0000 (08:29 -0800)
commit49f2974e15f7e37dde4cfbcef84abf14e6dd4e4a
treeea2c4230c32f2bccaf23682db10d332f4d3ca570
parentdcfcb30a031cb2684b10ec80427a4c83adb18c83
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