From 1a6374733c62b1d131a0f2c9da6190364df6e3df Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 22 Aug 2013 09:22:22 -0700 Subject: [PATCH] Skip main-repo warn if PORTDIR unset, bug #470006 --- pym/portage/repository/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.26.2