summaryrefslogtreecommitdiffstats
path: root/taskcluster/mach_commands.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
commitfbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch)
tree4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /taskcluster/mach_commands.py
parentReleasing progress-linux version 124.0.1-1~progress7.99u1. (diff)
downloadfirefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz
firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'taskcluster/mach_commands.py')
-rw-r--r--taskcluster/mach_commands.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/taskcluster/mach_commands.py b/taskcluster/mach_commands.py
index 78099f6eea..73e77fce66 100644
--- a/taskcluster/mach_commands.py
+++ b/taskcluster/mach_commands.py
@@ -17,23 +17,11 @@ from functools import partial
import gecko_taskgraph.main
from gecko_taskgraph.main import commands as taskgraph_commands
from mach.decorators import Command, CommandArgument, SubCommand
+from mach.util import strtobool
logger = logging.getLogger("taskcluster")
-def strtobool(value):
- """Convert string to boolean.
-
- Wraps "distutils.util.strtobool", deferring the import of the package
- in case it's not installed. Otherwise, we have a "chicken and egg problem" where
- |mach bootstrap| would install the required package to enable "distutils.util", but
- it can't because mach fails to interpret this file.
- """
- from distutils.util import strtobool
-
- return bool(strtobool(value))
-
-
def get_taskgraph_command_parser(name):
"""Given a command name, obtain its argument parser.
@@ -59,7 +47,7 @@ def get_taskgraph_decision_parser():
(
["--optimize-target-tasks"],
{
- "type": lambda flag: strtobool(flag),
+ "type": lambda flag: bool(strtobool(flag)),
"nargs": "?",
"const": "true",
"help": "If specified, this indicates whether the target "