diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-21 23:20:45 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-21 23:20:45 +0000 |
commit | 7771b760daca83fb323a647827195b1b1305d8e2 (patch) | |
tree | 9da52da94be28d39204674da4f912bad2afedeea | |
parent | f57360f4bf7488a47ee16dc64263aec9d7e7275f (diff) | |
download | portage-7771b760daca83fb323a647827195b1b1305d8e2.tar.gz portage-7771b760daca83fb323a647827195b1b1305d8e2.tar.bz2 portage-7771b760daca83fb323a647827195b1b1305d8e2.zip |
Bug #247776 - Show a warning message if CONFIG_PROTECT is empty.
svn path=/main/trunk/; revision=12022
-rw-r--r-- | pym/_emerge/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 44bbe1763..fe810ab78 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -13888,6 +13888,14 @@ def repo_name_check(trees): 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 @@ def emerge_main(): if "--quiet" not in myopts: portage.deprecated_profile_check() repo_name_check(trees) + config_protect_check(trees) eclasses_overridden = {} for mytrees in trees.itervalues(): |