mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 20:49:27 +00:00
Bug 916913 - is_b2g condition shouldn't fail if tree not built, r=gps
This commit is contained in:
parent
a09358a2db
commit
027df3510d
@ -521,7 +521,9 @@ class MachCommandConditions(object):
|
||||
@staticmethod
|
||||
def is_b2g(cls):
|
||||
"""Must have a Boot to Gecko build."""
|
||||
return cls.substs.get('MOZ_WIDGET_TOOLKIT') == 'gonk'
|
||||
if hasattr(cls, 'substs'):
|
||||
return cls.substs.get('MOZ_WIDGET_TOOLKIT') == 'gonk'
|
||||
return False
|
||||
|
||||
|
||||
class PathArgument(object):
|
||||
|
Loading…
x
Reference in New Issue
Block a user