Bug 1258785 - Return a None value when check_prog doesn't find a program. r=ted

This commit is contained in:
Mike Hommey 2016-03-23 09:48:38 +09:00
Родитель 07d9c95713
Коммит 2ee885572e
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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