From: Zac Medico Date: Thu, 22 Aug 2013 16:22:22 +0000 (-0700) Subject: Skip main-repo warn if PORTDIR unset, bug #470006 X-Git-Tag: v2.2.2~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1a6374733c62b1d131a0f2c9da6190364df6e3df;p=portage.git Skip main-repo warn if PORTDIR unset, bug #470006 --- diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 7b49eea7a..4c4a2ebae 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -694,7 +694,7 @@ class RepoConfigLoader(object): prepos['DEFAULT'].main_repo = main_repo else: prepos['DEFAULT'].main_repo = None - if not portage._sync_disabled_warnings: + if portdir and not portage._sync_disabled_warnings: writemsg(_("!!! main-repo not set in DEFAULT and PORTDIR is empty.\n"), noiselevel=-1) if main_repo is not None and prepos[main_repo].priority is None: