Respect --usepkgonly in suggestions, bug #389617
authorZac Medico <zmedico@gentoo.org>
Mon, 7 Nov 2011 06:32:30 +0000 (22:32 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 7 Nov 2011 06:32:30 +0000 (22:32 -0800)
pym/_emerge/depgraph.py

index fcdcc6c4ebf0e2fdecd5f38e74068b9231bd63c5..084864076a5e88c62917bcf4177402e2ce1323fa 100644 (file)
@@ -3270,7 +3270,8 @@ class depgraph(object):
 
                                all_cp = set()
                                all_cp.update(vardb.cp_all())
-                               all_cp.update(portdb.cp_all())
+                               if "--usepkgonly" not in self._frozen_config.myopts:
+                                       all_cp.update(portdb.cp_all())
                                if "--usepkg" in self._frozen_config.myopts:
                                        all_cp.update(bindb.cp_all())
                                # discard dir containing no ebuilds