Enable depgraph._load_vdb() with --buildpkgonly.
authorZac Medico <zmedico@gentoo.org>
Fri, 1 Oct 2010 14:25:49 +0000 (07:25 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 1 Oct 2010 14:25:49 +0000 (07:25 -0700)
The --buildpkgonly option does not negate the need for _load_vdb(),
at least not with the --resume option since otherwise the
select_pkg_from_graph() method fails to select installed packages.

pym/_emerge/depgraph.py

index a533a86b8477c99a3cb13fd314b2f93fb0c53da6..c91188e01cd3fd8ba896aa56a36897993c0226b4 100644 (file)
@@ -308,8 +308,7 @@ class depgraph(object):
                for myroot in self._frozen_config.trees:
 
                        preload_installed_pkgs = \
-                               "--nodeps" not in self._frozen_config.myopts and \
-                               "--buildpkgonly" not in self._frozen_config.myopts
+                               "--nodeps" not in self._frozen_config.myopts
 
                        fake_vartree = self._frozen_config.trees[myroot]["vartree"]
                        if not fake_vartree.dbapi: