Bug #248603 - Add a _ENABLE_REPO_NAME_WARN constant that's used to
authorZac Medico <zmedico@gentoo.org>
Thu, 2 Sep 2010 18:00:56 +0000 (11:00 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 2 Sep 2010 18:00:56 +0000 (11:00 -0700)
disable warnings about "missing repo_name entries" for the stable
branch.

pym/_emerge/main.py
pym/portage/const.py

index 19027ea477776c38c78f9a5c37a265c828ebefe1..4c8a547b5cf683c6302a102133649f33998e15bb 100644 (file)
@@ -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()
index cf24fcc3156b2b948ad3a5078c8daf28dc3334e2..5ef7eece1f17bad5869918705fc5779e9fb86855 100644 (file)
@@ -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