* [gentoo-commits] portage r12022 - main/trunk/pym/_emerge
@ 2008-11-21 23:20 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-11-21 23:20 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2008-11-21 23:20:45 +0000 (Fri, 21 Nov 2008)
New Revision: 12022
Modified:
main/trunk/pym/_emerge/__init__.py
Log:
Bug #247776 - Show a warning message if CONFIG_PROTECT is empty.
Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py 2008-11-21 22:32:10 UTC (rev 12021)
+++ main/trunk/pym/_emerge/__init__.py 2008-11-21 23:20:45 UTC (rev 12022)
@@ -13888,6 +13888,14 @@
return bool(missing_repo_names)
+def config_protect_check(trees):
+ for root, root_trees in trees.iteritems():
+ if not root_trees["root_config"].settings.get("CONFIG_PROTECT"):
+ msg = "!!! CONFIG_PROTECT is empty"
+ if root != "/":
+ msg += " for '%s'" % root
+ writemsg_level(msg, level=logging.WARN, noiselevel=-1)
+
def ambiguous_package_name(arg, atoms, root_config, spinner, myopts):
if "--quiet" in myopts:
@@ -13971,6 +13979,7 @@
if "--quiet" not in myopts:
portage.deprecated_profile_check()
repo_name_check(trees)
+ config_protect_check(trees)
eclasses_overridden = {}
for mytrees in trees.itervalues():
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-21 23:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-21 23:20 [gentoo-commits] portage r12022 - main/trunk/pym/_emerge Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox