summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-02 11:00:56 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-02 11:00:56 -0700
commitf440664c7e09360bd009d434e0ee83635dde932e (patch)
tree15c58391c54e2215b5bd41b96ca256c14c10b52f
parentfe830f9d2f8f89d171acc2ddb263f44d7e7c5eb6 (diff)
downloadportage-f440664c7e09360bd009d434e0ee83635dde932e.tar.gz
portage-f440664c7e09360bd009d434e0ee83635dde932e.tar.bz2
portage-f440664c7e09360bd009d434e0ee83635dde932e.zip
Bug #248603 - Add a _ENABLE_REPO_NAME_WARN constant that's used to
disable warnings about "missing repo_name entries" for the stable branch.
-rw-r--r--pym/_emerge/main.py5
-rw-r--r--pym/portage/const.py1
2 files changed, 5 insertions, 1 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index 19027ea47..4c8a547b5 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -1316,7 +1316,10 @@ def emerge_main():
if "--quiet" not in myopts:
portage.deprecated_profile_check(settings=settings)
- repo_name_check(trees)
+ if portage.const._ENABLE_REPO_NAME_WARN:
+ # Bug #248603 - Disable warnings about missing
+ # repo_name entries for stable branch.
+ repo_name_check(trees)
repo_name_duplicate_check(trees)
config_protect_check(trees)
check_procfs()
diff --git a/pym/portage/const.py b/pym/portage/const.py
index cf24fcc31..5ef7eece1 100644
--- a/pym/portage/const.py
+++ b/pym/portage/const.py
@@ -119,6 +119,7 @@ MANIFEST2_IDENTIFIERS = ("AUX", "MISC", "DIST", "EBUILD")
# between branches.
_ENABLE_DYN_LINK_MAP = True
_ENABLE_PRESERVE_LIBS = True
+_ENABLE_REPO_NAME_WARN = True
_ENABLE_SET_CONFIG = True