When all available ebuilds are masked, avoid producing warning message when
authorZac Medico <zmedico@gentoo.org>
Sun, 9 Mar 2008 20:13:58 +0000 (20:13 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 9 Mar 2008 20:13:58 +0000 (20:13 -0000)
the package does not need to be reinstalled and the installed version is not
masked.

svn path=/main/trunk/; revision=9457

pym/_emerge/__init__.py

index 2822895bb80acf70ded7d7c8a7feddf29e5e35ad..68bf0d9730ef6f5e393ce567952034c7dfd04db6 100644 (file)
@@ -1826,12 +1826,13 @@ class depgraph(object):
                        #    to prevent depclean from removing them
 
                        if arg_atoms:
+                               selective = "selective" in self.myparams
                                portdb = self.trees[pkg.root]["porttree"].dbapi
                                for arg, atom in arg_atoms:
                                        all_ebuilds_masked = bool(
                                                portdb.xmatch("match-all", atom) and
                                                not portdb.xmatch("bestmatch-visible", atom))
-                                       if all_ebuilds_masked:
+                                       if all_ebuilds_masked and not selective:
                                                self._missing_args.append((arg, atom))
 
                        if not visible(pkgsettings, pkg.cpv, pkg.metadata,