aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-08-22 09:22:22 -0700
committerZac Medico <zmedico@gentoo.org>2013-08-22 09:22:22 -0700
commit1a6374733c62b1d131a0f2c9da6190364df6e3df (patch)
tree41595ffff98b42af83106c2bab98073d64d985a8 /pym/portage/repository/config.py
parentNEWS: cgroups, ipc-sandbox, and network-sandbox (diff)
downloadportage-1a6374733c62b1d131a0f2c9da6190364df6e3df.tar.gz
portage-1a6374733c62b1d131a0f2c9da6190364df6e3df.tar.bz2
portage-1a6374733c62b1d131a0f2c9da6190364df6e3df.zip
Skip main-repo warn if PORTDIR unset, bug #470006
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py2
1 files changed, 1 insertions, 1 deletions
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: