mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-10 16:31:28 +00:00
ubuntu-build: support retrying builds in other states that failed-to-build
This commit is contained in:
parent
f01502bda2
commit
691c1381db
@ -100,6 +100,11 @@ def main():
|
|||||||
type=int,
|
type=int,
|
||||||
help="Rescore builds to <priority>.",
|
help="Rescore builds to <priority>.",
|
||||||
)
|
)
|
||||||
|
batch_options.add_argument(
|
||||||
|
"--state", action="store", dest="state",
|
||||||
|
help="Act on builds that are in the specified state (default: Failed to build)",
|
||||||
|
)
|
||||||
|
|
||||||
parser.add_argument("packages", metavar="package", nargs="*", help=argparse.SUPPRESS)
|
parser.add_argument("packages", metavar="package", nargs="*", help=argparse.SUPPRESS)
|
||||||
|
|
||||||
# Parse our options.
|
# Parse our options.
|
||||||
@ -266,9 +271,11 @@ def main():
|
|||||||
if not args.packages:
|
if not args.packages:
|
||||||
retry_count = 0
|
retry_count = 0
|
||||||
|
|
||||||
|
if not args.state:
|
||||||
|
args.state='Failed to build'
|
||||||
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=args.state, pocket=pocket
|
||||||
):
|
):
|
||||||
if build.arch_tag not in archs:
|
if build.arch_tag not in archs:
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user