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:
Tom Ritter 2022-01-04 20:53:28 +00:00
Родитель 9e748d25fc
Коммит b9b257ce6d
1 изменённых файлов: 4 добавлений и 3 удалений

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

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