From 7f1d63f355422326cca37cc8b4bc1f3e88a3acd2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 9 Mar 2008 20:13:58 +0000 Subject: 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 --- pym/_emerge/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pym') 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, -- cgit v1.2.3-1-g7c22