From: Zac Medico Date: Sat, 29 Mar 2008 21:15:28 +0000 (-0000) Subject: When all available ebuilds are masked, avoid producing warning message when X-Git-Tag: v2.1.5~296 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b3927ca30abde2e9a8f69c2c590e975b97333a5f;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. (trunk r9457) svn path=/main/branches/2.1.2/; revision=9605 --- diff --git a/bin/emerge b/bin/emerge index 47a79acb2..f9c9a930a 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1776,16 +1776,10 @@ class depgraph: # - multi-slot atoms listed in the world file # to prevent depclean from removing them - if arg: - all_ebuilds_masked = bool( - portdb.xmatch("match-all", arg) and - not portdb.xmatch("bestmatch-visible", arg)) - if all_ebuilds_masked: - self._missing_args.append(arg) - if "selective" not in self.myparams: - self._unsatisfied_deps_for_display.append( - ((pkg.root, arg), {"myparent":myparent})) - return 0 + if arg and "selective" not in self.myparams: + self._unsatisfied_deps_for_display.append( + ((pkg.root, arg), {"myparent":myparent})) + return 0 if not visible(pkgsettings, pkg.cpv, pkg.metadata, built=pkg.built, installed=pkg.installed): @@ -3116,19 +3110,6 @@ class depgraph: continue elif not vardb.match(x): self._world_problems = True - available = False - if "--usepkgonly" not in self.myopts and \ - portdb.match(x): - available = True - elif "--usepkg" in self.myopts: - for cpv in bindb.match(x): - metadata = dict(izip(bindb_keys, - bindb.aux_get(cpv, bindb_keys))) - if visible(pkgsettings, cpv, metadata, built=True): - available = True - break - if not available: - continue mylist.append(x) for myatom in mylist: