Update build_updatexml.yml

This commit is contained in:
2025-12-16 20:08:57 -06:00
parent 5dc69af8f0
commit d86a75240a

View File

@@ -125,11 +125,9 @@ if not download_url:
if not sha256: if not sha256:
raise SystemExit("Missing SHA256") raise SystemExit("Missing SHA256")
# Parse from file (handles XML declaration and avoids brittle string matching).
tree = ET.parse(template_path) tree = ET.parse(template_path)
root = tree.getroot() root = tree.getroot()
# Locate elements by tag name, regardless of exact nesting.
downloadurl_el = root.find(".//downloadurl") downloadurl_el = root.find(".//downloadurl")
sha256_el = root.find(".//sha256") sha256_el = root.find(".//sha256")