From cd0f2dc3dc6154e5644967383f1e2b015913dc38 Mon Sep 17 00:00:00 2001 From: Ben Hearsum Date: Tue, 30 Nov 2021 17:51:49 +0000 Subject: [PATCH] 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 --- python/mozbuild/mozbuild/mach_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py index b0c8f28e87fc..d13c827b17b7 100644 --- a/python/mozbuild/mozbuild/mach_commands.py +++ b/python/mozbuild/mozbuild/mach_commands.py @@ -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,