From 1af4736e0cab3a9d1fe18697bc0e00257cbaa6d7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 4 Jun 2008 23:51:57 +0000 Subject: Bug #224713 - Avoid TypeError when make.conf is missing: TypeError: argument of type 'NoneType' is not iterable (trunk r10582) svn path=/main/branches/2.1.2/; revision=10583 --- pym/portage.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pym') 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). -- cgit v1.2.3-1-g7c22