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
=== modified file 'manage-chroot'
--- manage-chroot 2020-04-06 00:26:38 +0000
+++ manage-chroot 2020-09-25 15:40:37 +0000
@@ -100,6 +100,13 @@
100 return 0100 return 0
101101
102102
103def get_hash(args):
104 das = args.architectures[0]
105 chroot_hash = das.getChrootHash(
106 pocket=args.pocket, image_type=args.image_type)
107 return chroot_hash
108
109
103def info_chroot(args):110def info_chroot(args):
104 das = args.architectures[0]111 das = args.architectures[0]
105 url = das.getChrootURL(pocket=args.pocket, image_type=args.image_type)112 url = das.getChrootURL(pocket=args.pocket, image_type=args.image_type)
@@ -249,6 +256,7 @@
249256
250commands = {257commands = {
251 "get": get_chroot,258 "get": get_chroot,
259 "get-hash": get_hash,
252 "info": info_chroot,260 "info": info_chroot,
253 "remove": remove_chroot,261 "remove": remove_chroot,
254 "set": set_chroot}262 "set": set_chroot}

Subscribers

People subscribed via source and target branches