Merge ~sbeattie/usn-tool:usn_allbinary_source into usn-tool:master

Proposed by Steve Beattie
Status: Merged
Merged at revision: 07aaa7e139ef4fdfcd297fa789401a930ca63cd3
Proposed branch: ~sbeattie/usn-tool:usn_allbinary_source
Merge into: usn-tool:master
Diff against target: 16 lines (+5/-0)
1 file modified
usn.py (+5/-0)
Reviewer Review Type Date Requested Status
USN Tool Team Pending
Review via email: mp+403922@code.launchpad.net

Commit message

usn.py: add --all-binary-source option

This adds the --all-binary-source option for the allbinaries section of
a USN, letting us link the source package with the binary packages
reference. This helps us retain this link, especially in USNs where
mutliple source packages are included; specifically kernel USNs are
problematic.

Additionally, in kernel USNs we drop linux-meta and linux-signed source
records to keep kernel USNs from exploding, but adding this option lets
us retain the connection and pass it on to the USN website for linking
and consumption by tools; it will help address
https://github.com/canonical/ubuntu-advantage-client/issues/1465

Description of the change

(At the moment, this change is a work-in-progress, but I need the merge request to reference elsewhere, though this is the first step that needs to land.)

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/usn.py b/usn.py
2index b7dbf9d..4d106fd 100755
3--- a/usn.py
4+++ b/usn.py
5@@ -163,6 +163,11 @@ def parse_options(argv):
6 Var("package"), "version"),
7 help="Set all binary package version with fix on the "
8 "given release")
9+ register_option("--all-binary-source", metavar="SRC",
10+ path=("releases", Var("release"), "allbinaries",
11+ Var("package"), "source"),
12+ help="Set all binary package version with fix on the "
13+ "given release")
14 register_option("--source-version", metavar="VER",
15 path=("releases", Var("release"), "sources",
16 Var("package"), "version"),

Subscribers

People subscribed via source and target branches

to all changes: