Merge lp:~twom/ubuntu-archive-tools/get-sha into lp:ubuntu-archive-tools

Proposed by Tom Wardill
Status: Merged
Merged at revision: 1386
Proposed branch: lp:~twom/ubuntu-archive-tools/get-sha
Merge into: lp:ubuntu-archive-tools
Diff against target: 25 lines (+8/-0)
1 file modified
manage-chroot (+8/-0)
To merge this branch: bzr merge lp:~twom/ubuntu-archive-tools/get-sha
Reviewer Review Type Date Requested Status
Steve Langasek Approve
Review via email: mp+391371@code.launchpad.net

Commit message

Add get-sha method to retrieve the sha256 of a chroot

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

Can the command be get-hash too?

1388. By Tom Wardill

Rename to get-hash

Revision history for this message
Tom Wardill (twom) wrote :

Yes it can! Done :)

Revision history for this message
Steve Langasek (vorlon) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'manage-chroot'
2--- manage-chroot 2020-04-06 00:26:38 +0000
3+++ manage-chroot 2020-09-25 15:40:37 +0000
4@@ -100,6 +100,13 @@
5 return 0
6
7
8+def get_hash(args):
9+ das = args.architectures[0]
10+ chroot_hash = das.getChrootHash(
11+ pocket=args.pocket, image_type=args.image_type)
12+ return chroot_hash
13+
14+
15 def info_chroot(args):
16 das = args.architectures[0]
17 url = das.getChrootURL(pocket=args.pocket, image_type=args.image_type)
18@@ -249,6 +256,7 @@
19
20 commands = {
21 "get": get_chroot,
22+ "get-hash": get_hash,
23 "info": info_chroot,
24 "remove": remove_chroot,
25 "set": set_chroot}

Subscribers

People subscribed via source and target branches