commit b49b3cdc198d25485df134a6c26c470476c0be90
parent 41afd870cb76c9ec85986b8d7280a4c1b38dfd80
Author: Julien Cristau <jcristau@mozilla.com>
Date: Wed, 26 Nov 2025 15:48:28 +0000
Bug 2002363 - avoid anubis in hfsplus-tools fetch. r=taskgraph-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D274137
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/taskcluster/gecko_taskgraph/transforms/fetch.py b/taskcluster/gecko_taskgraph/transforms/fetch.py
@@ -210,6 +210,7 @@ def make_task(config, jobs):
# download.
Required("key-path"): str,
},
+ Optional("headers"): [str],
# The name to give to the generated artifact. Defaults to the file
# portion of the URL. Using a different extension converts the
# archive to the given type. Only conversion to .tar.zst is
@@ -273,6 +274,9 @@ def create_fetch_url_task(config, name, fetch):
]
)
+ for header in fetch.get("headers", []):
+ command.extend(["--header", header])
+
command.extend(
[
fetch["url"],
diff --git a/taskcluster/kinds/fetch/toolchains.yml b/taskcluster/kinds/fetch/toolchains.yml
@@ -283,6 +283,8 @@ hfsplus-tools:
url: https://src.fedoraproject.org/repo/pkgs/hfsplus-tools/diskdev_cmds-540.1.linux3.tar.gz/0435afc389b919027b69616ad1b05709/diskdev_cmds-540.1.linux3.tar.gz
sha256: b01b203a97f9a3bf36a027c13ddfc59292730552e62722d690d33bd5c24f5497
size: 411205
+ headers:
+ - "Accept: application/octet-stream"
xar:
description: xar source code