Bug #224713 - Avoid TypeError when make.conf is missing: v2.1.5.4
authorZac Medico <zmedico@gentoo.org>
Wed, 4 Jun 2008 23:51:57 +0000 (23:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 4 Jun 2008 23:51:57 +0000 (23:51 -0000)
TypeError: argument of type 'NoneType' is not iterable
(trunk r10582)

svn path=/main/branches/2.1.2/; revision=10583

pym/portage.py

index 98b71626ec7f04a6d4e8fab1a6e8b3f7279482f3..5330100554aa0b929035a08eb9f085c4847e50c0 100644 (file)
@@ -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).