From 01be17a809e803e9593b224880003be7680447ba Mon Sep 17 00:00:00 2001 From: Stuart Prescott Date: Fri, 13 Feb 2026 11:45:04 +1100 Subject: [PATCH] Minor updates for helper scripts --- debian/check-build-logs | 25 +++++++++++++++++++++---- debian/check-deps | 4 ++-- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/debian/check-build-logs b/debian/check-build-logs index 2a278aae..ae8ee35f 100755 --- a/debian/check-build-logs +++ b/debian/check-build-logs @@ -1,4 +1,22 @@ #!/usr/bin/python3 +""" +Check the build logs to find tests expected to fail that actually pass +(BPASS). + +If not already present, duild logs are automatically downloaded from +buildd.d.o (using getbuildlog from devscripts). + +The version to check can be specified on the commandline; otherwise +the current version from d/changelog is used. + +Usage: + ./debian/check-build-logs + ./debian/check-build-logs 6.9.2-2 +""" +# Copyright (c) 2024-2026 Stuart Prescott +# +# Part of the Debian packaging for PySide6 +# Available under GPL-2+ or LGPL-3 - see debian/copyright from collections import defaultdict from pathlib import Path @@ -12,10 +30,9 @@ from debian.changelog import Changelog debian_archs = [ "amd64", "arm64", - "armel", "armhf", "i386", - "mips64el", + "loong64", "ppc64el", "riscv64", "s390x", @@ -36,7 +53,7 @@ def fetch_build_logs(package: str, version: str) -> None: def find_bpass(filepath: Path) -> list[str]: with open(filepath, "rt") as fh: - bpass = [l for l in fh.readlines() if "BPASS" in l] + bpass = [line for line in fh.readlines() if "BPASS" in line] return bpass @@ -82,7 +99,7 @@ def print_table(result: dict[str, list[str]]): print(test) print(" " * max_len, end="") else: - print(f"{test:{max_len+1}}", end="") + print(f"{test:{max_len + 1}}", end="") for a in debian_archs: if a not in checked: icon = "?" diff --git a/debian/check-deps b/debian/check-deps index cf3de2f6..53be095f 100755 --- a/debian/check-deps +++ b/debian/check-deps @@ -4,9 +4,9 @@ Check the dependencies of the set of packages in the split pyside package layout. Usage: - check-deps ../build-area/pyside6_6.X.Y-Z_amd64.changes + ./debian/check-deps ../build-area/pyside6_6.X.Y-Z_amd64.changes """ -# Copyright (c) 2024 Stuart Prescott +# Copyright (c) 2024-2026 Stuart Prescott # # Part of the Debian packaging for PySide6 # Available under GPL-2+ or LGPL-3 - see debian/copyright -- 2.30.2