From 42f8e5c0d2735b29611828ac51af6c0bf5016ee3 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Fri, 8 Mar 2024 18:38:59 -0800 Subject: [PATCH] ubuntu-build: in batch mode, print a count of packages retried --- ubuntu-build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ubuntu-build b/ubuntu-build index 17946fa..fbf7397 100755 --- a/ubuntu-build +++ b/ubuntu-build @@ -276,6 +276,8 @@ def main(): ) if not args.packages: + retry_count = 0 + series = Distribution("ubuntu").getSeries(release) for build in series.getBuildRecords( build_state='Failed to build', pocket=pocket @@ -309,6 +311,7 @@ def main(): if can_retry: Logger.info("Retrying build of %s on %s...", build.source_package_name, build.arch_tag) + retry_count += 1 build.retry() else: Logger.info("Cannot retry build of %s on %s.", @@ -317,6 +320,7 @@ def main(): Logger.info(pkg.rescoreBuilds(archs, args.priority)) Logger.info("") + Logger.info("%d package builds retried", retry_count) sys.exit(0)