summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-09 20:13:58 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-09 20:13:58 +0000
commit7f1d63f355422326cca37cc8b4bc1f3e88a3acd2 (patch)
tree65a8cdbd2b501194aa70461eeb10b04b4f290118
parent0d4857c5d5d600641efa366f0fc769d17368caac (diff)
downloadportage-7f1d63f355422326cca37cc8b4bc1f3e88a3acd2.tar.gz
portage-7f1d63f355422326cca37cc8b4bc1f3e88a3acd2.tar.bz2
portage-7f1d63f355422326cca37cc8b4bc1f3e88a3acd2.zip
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
-rw-r--r--pym/_emerge/__init__.py3
1 files changed, 2 insertions, 1 deletions
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,