Merge ~juliank/ubuntu-archive-tools:uefi-release into ubuntu-archive-tools:main

Proposed by Julian Andres Klode
Status: Needs review
Proposed branch: ~juliank/ubuntu-archive-tools:uefi-release
Merge into: ubuntu-archive-tools:main
Diff against target: 52 lines (+46/-0)
1 file modified
uefi-release (+46/-0)
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+443357@code.launchpad.net
To post a comment you must log in.

Unmerged commits

31ad2d8... by Julian Andres Klode

Add uefi-release tool to release binaries from the UEFI PPAs

Currently there are three actions:

- unembargo takes a signed package set from the `proposed` PPA
  and copies it to the `proposed-public` PPA.

- promote-to-primary copies from `proposed-public` to the primary
  archive's proposed pockets of the same suite.

- promote-to-devel copies from `proposed-public` to the primary
  archive's proposed pocket in devel. You will use that when you
  have submitted something for signing in a release that has been
  released in the meantime.

  e.g. after lunar release, a grub update scheduled for lunar
  before the release needs releasing to both lunar and mantic,
  so you `promote-to-primary` and `promote-to-devel` it.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/uefi-release b/uefi-release
2new file mode 100755
3index 0000000..1e26bb6
4--- /dev/null
5+++ b/uefi-release
6@@ -0,0 +1,46 @@
7+#!/bin/sh
8+
9+set -e
10+
11+build="ppa:ubuntu-uefi-team/ubuntu/ppa"
12+proposed="ppa:ubuntu-uefi-team/ubuntu/proposed"
13+proposed_public="ppa:ubuntu-uefi-team/ubuntu/proposed-public"
14+
15+
16+run() {
17+ echo "+ $@"
18+ "$@"
19+}
20+
21+case "$1" in
22+ unembargo)
23+ shift
24+ for packagesuite in "$@"; do
25+ package=${packagesuite%/*}
26+ suite=${packagesuite#*/}
27+ run ./copy-package --unembargo -b --from $proposed --to $proposed_public $package --suite $suite
28+ done
29+ ;;
30+ promote-to-devel)
31+ shift
32+ for packagesuite in "$@"; do
33+ package=${packagesuite%/*}
34+ suite=${packagesuite#*/}
35+ run ./copy-package -b --from $proposed_public --to ubuntu $package --to-suite devel-proposed --from-suite $suite
36+ done
37+ ;;
38+ promote-to-primary)
39+ shift
40+ for packagesuite in "$@"; do
41+ package=${packagesuite%/*}
42+ suite=${packagesuite#*/}
43+ run ./copy-package -b --from $proposed_public --to ubuntu $package --to-suite $suite-proposed --from-suite $suite
44+ done
45+ ;;
46+ *)
47+ echo "E: Unknown action $1" >&2
48+ echo "Usage: $0 [unembargo|promote-to-primary|promote-to-devel] package/suite..." >&2
49+ exit 1
50+ ;;
51+esac
52+

Subscribers

People subscribed via source and target branches