Bug 1257413 - Fix check_prog() to properly fail when program is missing after bug 1256568 draft
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 17 Mar 2016 12:55:37 +0900
changeset 341467 6b14a2d6229cd1e3c5a216a85bce4a6a8d11876c
parent 341417 a2ba630a0ba59a2b8220d5ab98d5de533275a399
child 341485 47b39c99ae3361eed56280b4af225399d531cf20
push id13217
push userbmo:mh+mozilla@glandium.org
push dateThu, 17 Mar 2016 03:56:24 +0000
bugs1257413, 1256568
milestone48.0a1
Bug 1257413 - Fix check_prog() to properly fail when program is missing after bug 1256568
build/moz.configure/checks.configure
--- a/build/moz.configure/checks.configure
+++ b/build/moz.configure/checks.configure
@@ -64,14 +64,14 @@ def check_prog(var, progs, allow_missing
             if result:
                 return result
         return not_found
 
     @depends(check)
     @advanced
     def postcheck(value):
         set_config(var, ':' if value is not_found else value)
-        if not value and not allow_missing:
+        if value is not_found and not allow_missing:
             from mozbuild.shellutil import quote
             error('Cannot find %s (tried: %s)'
                   % (var.lower(), ', '.join(quote(p) for p in progs)))
 
     return check