mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-12 17:31:29 +00:00
ubuntu-build: in batch mode, print a count of packages retried
This commit is contained in:
parent
bb8a9f7394
commit
42f8e5c0d2
@ -276,6 +276,8 @@ def main():
|
|||||||
)
|
)
|
||||||
|
|
||||||
if not args.packages:
|
if not args.packages:
|
||||||
|
retry_count = 0
|
||||||
|
|
||||||
series = Distribution("ubuntu").getSeries(release)
|
series = Distribution("ubuntu").getSeries(release)
|
||||||
for build in series.getBuildRecords(
|
for build in series.getBuildRecords(
|
||||||
build_state='Failed to build', pocket=pocket
|
build_state='Failed to build', pocket=pocket
|
||||||
@ -309,6 +311,7 @@ def main():
|
|||||||
if can_retry:
|
if can_retry:
|
||||||
Logger.info("Retrying build of %s on %s...",
|
Logger.info("Retrying build of %s on %s...",
|
||||||
build.source_package_name, build.arch_tag)
|
build.source_package_name, build.arch_tag)
|
||||||
|
retry_count += 1
|
||||||
build.retry()
|
build.retry()
|
||||||
else:
|
else:
|
||||||
Logger.info("Cannot retry build of %s on %s.",
|
Logger.info("Cannot retry build of %s on %s.",
|
||||||
@ -317,6 +320,7 @@ def main():
|
|||||||
Logger.info(pkg.rescoreBuilds(archs, args.priority))
|
Logger.info(pkg.rescoreBuilds(archs, args.priority))
|
||||||
|
|
||||||
Logger.info("")
|
Logger.info("")
|
||||||
|
Logger.info("%d package builds retried", retry_count)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user