From 2ee885572e88f9437653b98fe4fc72d1921e8861 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Wed, 23 Mar 2016 09:48:38 +0900 Subject: [PATCH] Bug 1258785 - Return a None value when check_prog doesn't find a program. r=ted --- build/moz.configure/checks.configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/moz.configure/checks.configure b/build/moz.configure/checks.configure index a1640405c797..e1e79ebf0484 100644 --- a/build/moz.configure/checks.configure +++ b/build/moz.configure/checks.configure @@ -75,5 +75,6 @@ def check_prog(var, progs, allow_missing=False): from mozbuild.shellutil import quote error('Cannot find %s (tried: %s)' % (var.lower(), ', '.join(quote(p) for p in progs))) + return None if value is not_found else value - return check + return postcheck