From: Zac Medico Date: Sun, 9 Mar 2008 20:13:58 +0000 (-0000) Subject: When all available ebuilds are masked, avoid producing warning message when X-Git-Tag: v2.2_pre5~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7f1d63f355422326cca37cc8b4bc1f3e88a3acd2;p=portage.git When all available ebuilds are masked, avoid producing warning message when the package does not need to be reinstalled and the installed version is not masked. svn path=/main/trunk/; revision=9457 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 2822895bb..68bf0d973 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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,