bug 920640 - fix crashreporter key in mozinfo.json when --enable-crashreporter is specified. r=gps
authorTed Mielczarek <ted@mielczarek.org>
Thu, 26 Sep 2013 11:19:04 -0400
changeset 162637 d7ff031debcd86203097030d14c078d936c526e6
parent 162636 63db6c5e2b7a9552b68b57ba37a2e38bf106a05c
child 162638 1cf672f16b74033925b72bd4c8f90e107fa062c9
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs920640
milestone27.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 920640 - fix crashreporter key in mozinfo.json when --enable-crashreporter is specified. r=gps
python/mozbuild/mozbuild/mozinfo.py
--- a/python/mozbuild/mozbuild/mozinfo.py
+++ b/python/mozbuild/mozbuild/mozinfo.py
@@ -68,17 +68,17 @@ def build_dict(config, env=os.environ):
     if p in ["x86_64", "ppc64"]:
         d["bits"] = 64
     # hardcoded list of known 32-bit CPUs
     elif p in ["x86", "arm", "ppc"]:
         d["bits"] = 32
     # other CPUs will wind up with unknown bits
 
     d['debug'] = substs.get('MOZ_DEBUG') == '1'
-    d['crashreporter'] = substs.get('MOZ_CRASHREPORTER') == '1'
+    d['crashreporter'] = bool(substs.get('MOZ_CRASHREPORTER'))
     d['asan'] = substs.get('MOZ_ASAN') == '1'
     d['tests_enabled'] = substs.get('ENABLE_TESTS') == "1"
     d['bin_suffix'] = substs.get('BIN_SUFFIX', '')
 
     return d
 
 
 def write_mozinfo(file, config, env=os.environ):