Bug 832202 - Handle empty lists from config.status in buildconfig.py. r=ted
authorMike Hommey <mh+mozilla@glandium.org>
Sat, 19 Jan 2013 09:46:51 +0100
changeset 130012 6b280e1554845df3eff6a6ef1f885ab6a64f4489
parent 130011 204b95febb133df8062ab60e393ca8b654f31d07
child 130013 a523c072eceddc0cae30099551d77e3a7cab01cb
push id317
push userbbajaj@mozilla.com
push dateTue, 07 May 2013 01:20:33 +0000
treeherdermozilla-release@159a10910249 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs832202
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 832202 - Handle empty lists from config.status in buildconfig.py. r=ted
build/buildconfig.py
--- a/build/buildconfig.py
+++ b/build/buildconfig.py
@@ -17,11 +17,11 @@ path = os.path.join(path, 'config.status
 config = imp.load_module('_buildconfig', open(path), path, ('', 'r', imp.PY_SOURCE))
 
 for var in os.environ:
     if var in config.substs:
         config.substs[var] = os.environ[var]
 
 for var in config.__all__:
     value = getattr(config, var)
-    if isinstance(value, list) and isinstance(value[0], tuple):
+    if isinstance(value, list) and value and isinstance(value[0], tuple):
         value = dict(value)
     setattr(sys.modules[__name__], var, value)