Bug 1375593 - If cannot find ThirdPartyPaths.txt, don't break the build r=gps

MozReview-Commit-ID: KSUCct6Si2I

--HG--
extra : rebase_source : 73166eab662c97687fd51ff0d5e7f8a6a6abd87f
This commit is contained in:
Sylvestre Ledru 2017-06-23 15:42:19 +02:00
Родитель f079cebc09
Коммит dbfe98bb2d
1 изменённых файлов: 8 добавлений и 3 удалений

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

@ -484,9 +484,14 @@ class Build(MachCommandBase):
"tools",
"rewriting",
"ThirdPartyPaths.txt")
with open(pathToThirdparty) as f:
# Normalize the path (no trailing /)
LOCAL_SUPPRESS_DIRS = tuple(d.rstrip('/') for d in f.read().splitlines())
if os.path.exists(pathToThirdparty):
with open(pathToThirdparty) as f:
# Normalize the path (no trailing /)
LOCAL_SUPPRESS_DIRS = tuple(d.rstrip('/') for d in f.read().splitlines())
else:
# For application based on gecko like thunderbird
LOCAL_SUPPRESS_DIRS = ()
suppressed_by_dir = collections.Counter()