Bug 1743233: ./mach repackage fails to infer parameters. r=mhentges

`command_context.bindir` appears to be guaranteed to exist in `mozbuild`, so this should be perfectly safe.

Differential Revision: https://phabricator.services.mozilla.com/D132404
This commit is contained in:
Ben Hearsum 2021-11-30 17:51:49 +00:00
Родитель 0e1c070b32
Коммит cd0f2dc3dc
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -2211,8 +2211,8 @@ def repackage_msix(
}
if not input:
if os.path.exists(command_context.get("bindir")):
input = command_context["bindir"]
if os.path.exists(command_context.bindir):
input = command_context.bindir
else:
command_context.log(
logging.ERROR,