зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1743688: Fix a bit in rewrite_mozbuild r=jewilde
Depends on D129436 Differential Revision: https://phabricator.services.mozilla.com/D129437
This commit is contained in:
Родитель
9e748d25fc
Коммит
b9b257ce6d
|
@ -862,9 +862,10 @@ def validate_directory_parameters(moz_yaml_dir, vendoring_dir):
|
|||
moz_yaml_dir and vendoring_dir
|
||||
), "If either moz_yaml_dir or vendoring_dir are specified, they both must be"
|
||||
|
||||
# Ensure they are provided with trailing slashes
|
||||
moz_yaml_dir += "/" if moz_yaml_dir[-1] != "/" else ""
|
||||
vendoring_dir += "/" if vendoring_dir[-1] != "/" else ""
|
||||
if moz_yaml_dir is not None:
|
||||
# Ensure they are provided with trailing slashes
|
||||
moz_yaml_dir += "/" if moz_yaml_dir[-1] != "/" else ""
|
||||
vendoring_dir += "/" if vendoring_dir[-1] != "/" else ""
|
||||
|
||||
return (moz_yaml_dir, vendoring_dir)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче