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>
Tue, 5 Oct 2010 16:02:56 +0000 (09:02 -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 7763c3b8ca49a3ff6477a14f92cc0ed0b3b690fa..099020856d56301b722a8c71526f2ae7bccba948 100644 (file)
@@ -327,8 +327,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: