diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2012-10-14 03:33:38 +0200 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2012-10-14 03:33:38 +0200 |
commit | b7b906fdf49a55621a12798ae21d603d9ca4eb76 (patch) | |
tree | 2cd0a66bf5a8c5cb3363a77defb807c1dd0dcb58 /pym/portage/repository | |
parent | 58c2ef4e37fa635945e19a1650e15206d457830b (diff) | |
download | portage-b7b906fdf49a55621a12798ae21d603d9ca4eb76.tar.gz portage-b7b906fdf49a55621a12798ae21d603d9ca4eb76.tar.bz2 portage-b7b906fdf49a55621a12798ae21d603d9ca4eb76.zip |
Bug #434970: Disable some warnings during `emerge --sync`.
Diffstat (limited to 'pym/portage/repository')
-rw-r--r-- | pym/portage/repository/config.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 83018b8a6..71f548ca4 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -15,6 +15,7 @@ try: from configparser import SafeConfigParser except ImportError: from ConfigParser import SafeConfigParser, ParsingError +import portage from portage import eclass_cache, os from portage.const import (MANIFEST2_HASH_FUNCTIONS, MANIFEST2_REQUIRED_HASH, REPO_NAME_LOC, USER_CONFIG_PATH) @@ -396,8 +397,8 @@ class RepoConfigLoader(object): prepos[repo.name] = repo else: - writemsg(_("!!! Invalid PORTDIR_OVERLAY" - " (not a dir): '%s'\n") % ov, noiselevel=-1) + if not portage._sync_disabled_warnings: + writemsg(_("!!! Invalid PORTDIR_OVERLAY (not a dir): '%s'\n") % ov, noiselevel=-1) return portdir @@ -521,7 +522,8 @@ class RepoConfigLoader(object): prepos['DEFAULT'].main_repo = ignored_location_map[portdir] else: prepos['DEFAULT'].main_repo = None - writemsg(_("!!! main-repo not set in DEFAULT and PORTDIR is empty. \n"), noiselevel=-1) + if not portage._sync_disabled_warnings: + writemsg(_("!!! main-repo not set in DEFAULT and PORTDIR is empty.\n"), noiselevel=-1) self.prepos = prepos self.prepos_order = prepos_order |