From: Zac Medico Date: Fri, 4 Apr 2008 18:43:29 +0000 (-0000) Subject: Display the note referencing "masked packages" docs when there are X-Git-Tag: v2.1.5~248 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ebb46570489a2fe7795871e2ee77d005db2a7b8f;p=portage.git Display the note referencing "masked packages" docs when there are installed masked packages to display. (trunk r9704:9706) svn path=/main/branches/2.1.2/; revision=9707 --- diff --git a/bin/emerge b/bin/emerge index b33bef116..35c2eb76f 100755 --- a/bin/emerge +++ b/bin/emerge @@ -2198,8 +2198,7 @@ class depgraph: for line in wrap(msg, 75): print line print - print "For more information, see MASKED PACKAGES section in the emerge man page or " - print "refer to the Gentoo Handbook." + show_mask_docs() else: print "\nemerge: there are no ebuilds to satisfy "+green(xinfo)+"." if myparent: @@ -3815,17 +3814,6 @@ class depgraph: self._show_slot_collision_notice() - masked_packages = [] - for pkg, pkgsettings in self._masked_installed: - root_config = self.roots[pkg.root] - mreasons = get_masking_status(pkg, pkgsettings, root_config) - masked_packages.append((root_config, pkgsettings, - pkg.cpv, pkg.metadata, mreasons)) - if masked_packages: - sys.stderr.write("\n" + colorize("BAD", "!!!") + \ - " The following installed packages are masked:\n") - show_masked_packages(masked_packages) - if self._world_problems: sys.stderr.write("\n!!! Problems have been " + \ "detected with your world file\n") @@ -3876,6 +3864,19 @@ class depgraph: msg.append("package.provided entry exists.\n\n") sys.stderr.write("".join(msg)) + masked_packages = [] + for pkg, pkgsettings in self._masked_installed: + root_config = self.roots[pkg.root] + mreasons = get_masking_status(pkg, pkgsettings, root_config) + masked_packages.append((root_config, pkgsettings, + pkg.cpv, pkg.metadata, mreasons)) + if masked_packages: + sys.stderr.write("\n" + colorize("BAD", "!!!") + \ + " The following installed packages are masked:\n") + show_masked_packages(masked_packages) + show_mask_docs() + print + for pargs, kwargs in self._unsatisfied_deps_for_display: self._show_unsatisfied_dep(*pargs, **kwargs) @@ -5145,6 +5146,10 @@ def show_blocker_docs_link(): print "http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked" print +def show_mask_docs(): + print "For more information, see MASKED PACKAGES section in the emerge man page or " + print "refer to the Gentoo Handbook." + def action_sync(settings, trees, mtimedb, myopts, myaction): xterm_titles = "notitles" not in settings.features emergelog(xterm_titles, " === sync")