Merge ~twom/launchpad:buildd-sha-export into launchpad:master

Proposed by Tom Wardill
Status: Merged
Approved by: Tom Wardill
Approved revision: 945c06d897edea303fa11b99d982cf8f23982c8e
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~twom/launchpad:buildd-sha-export
Merge into: launchpad:master
Diff against target: 69 lines (+29/-0)
3 files modified
lib/lp/soyuz/browser/tests/test_distroarchseries_webservice.py (+14/-0)
lib/lp/soyuz/interfaces/distroarchseries.py (+8/-0)
lib/lp/soyuz/model/distroarchseries.py (+7/-0)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+391360@code.qastaging.launchpad.net

Commit message

Add retrieval of the sha256 for a chroot in a DAS

Description of the change

We set the chroot for a PocketChroot via the DistroArchSeries using it's SHA1, but this is basically write-only without downloading the whole chroot file and recalculating it.
Add an equivalent getChrootHash alongside getChrootURL that returns the sha256 from the librarian file.

Sample API call:
https://api.launchpad.test/devel/ubuntu/bionic/amd64?ws.op=getChrootHash&image_type=Chroot%20tarball&pocket=Release

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

This broadly looks good, but I'd like some small API adjustments.

review: Needs Fixing
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: