summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-04 23:51:57 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-04 23:51:57 +0000
commit1af4736e0cab3a9d1fe18697bc0e00257cbaa6d7 (patch)
tree4d13a511a1ab9988cff072c58876e549fd8045dc
parentaab373247249ab9ea5ff1297252e0e3979aadf97 (diff)
downloadportage-2.1.5.4.tar.gz
portage-2.1.5.4.tar.bz2
portage-2.1.5.4.zip
Bug #224713 - Avoid TypeError when make.conf is missing:v2.1.5.4
TypeError: argument of type 'NoneType' is not iterable (trunk r10582) svn path=/main/branches/2.1.2/; revision=10583
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 98b71626e..533010055 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1431,6 +1431,8 @@ class config:
make_conf = getconfig(
os.path.join(config_root, MAKE_CONF_FILE.lstrip(os.path.sep)),
tolerant=tolerant, allow_sourcing=True)
+ if make_conf is None:
+ make_conf = {}
# Allow ROOT setting to come from make.conf if it's not overridden
# by the constructor argument (from the calling environment).