From c92fa6502f0d9dc2485e5d93a66ae0c7ea91c5ed Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sun, 10 Mar 2024 20:52:05 -0700 Subject: [PATCH] ubuntu-build: Handling of proposed vs release pocket default for ppas --- ubuntu-build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ubuntu-build b/ubuntu-build index 2efacf3..88ec52f 100755 --- a/ubuntu-build +++ b/ubuntu-build @@ -166,7 +166,11 @@ def main(): if args.batch: release = args.series if not release: - release = ubuntu.getDevelopmentSeries()[0].name + "-proposed" + # ppas don't have a proposed pocket so just use the release pocket; + # but for the main archive we default to -proposed + release = ubuntu.getDevelopmentSeries()[0].name + if args.archive == 'ubuntu': + release = release + "-proposed" try: (release, pocket) = split_release_pocket(release) except PocketDoesNotExistError as error: