Merge lp:~cjwatson/launchpad/dspr-show-sha256 into lp:launchpad

Proposed by Colin Watson
Status: Merged
Merged at revision: 17982
Proposed branch: lp:~cjwatson/launchpad/dspr-show-sha256
Merge into: lp:launchpad
Diff against target: 89 lines (+12/-10)
3 files modified
lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt (+6/-4)
lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt (+4/-4)
lib/lp/soyuz/templates/distributionsourcepackagerelease-files.pt (+2/-2)
To merge this branch: bzr merge lp:~cjwatson/launchpad/dspr-show-sha256
Reviewer Review Type Date Requested Status
William Grant code Approve
Review via email: mp+290427@code.launchpad.net

Commit message

Show SHA-256 checksums rather than MD5 on DistributionSourcePackageRelease:+files.

Description of the change

Show SHA-256 checksums rather than MD5 on DistributionSourcePackageRelease:+files.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt'
--- lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt 2015-11-24 01:44:28 +0000
+++ lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt 2016-03-30 10:20:05 +0000
@@ -195,8 +195,9 @@
195 >>> print extract_text(195 >>> print extract_text(
196 ... find_portlet(anon_browser.contents, 'Downloads'))196 ... find_portlet(anon_browser.contents, 'Downloads'))
197 Downloads197 Downloads
198 File Size MD5 Checksum198 File Size SHA-256 Checksum
199 testing-dspr_1.0.dsc 28 bytes 5913c3ad52c14a62e6ae7eef51f9ef42199 testing-dspr_1.0.dsc 28 bytes
200 ac512102db9724bee18f26945efeeb82fdab89819e64e120fbfda755ca50c2c6
200 View changes file201 View changes file
201202
202 >>> print anon_browser.getLink('testing-dspr_1.0.dsc').url203 >>> print anon_browser.getLink('testing-dspr_1.0.dsc').url
@@ -218,8 +219,9 @@
218 >>> print extract_text(219 >>> print extract_text(
219 ... find_portlet(anon_browser.contents, 'Downloads'))220 ... find_portlet(anon_browser.contents, 'Downloads'))
220 Downloads221 Downloads
221 File Size MD5 Checksum222 File Size SHA-256 Checksum
222 testing-dspr_1.0.dsc 28 bytes 5913c3ad52c14a62e6ae7eef51f9ef42223 testing-dspr_1.0.dsc 28 bytes
224 ac512102db9724bee18f26945efeeb82fdab89819e64e120fbfda755ca50c2c6
223 Available diffs225 Available diffs
224 diff from 0.9 to 1.0 (7 bytes)226 diff from 0.9 to 1.0 (7 bytes)
225 View changes file227 View changes file
226228
=== modified file 'lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt'
--- lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt 2016-02-05 15:16:29 +0000
+++ lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt 2016-03-30 10:20:05 +0000
@@ -86,7 +86,7 @@
86 >>> print extract_text(find_portlet(86 >>> print extract_text(find_portlet(
87 ... content, 'Download files from current release (0.9)'))87 ... content, 'Download files from current release (0.9)'))
88 Download files from current release (0.9)88 Download files from current release (0.9)
89 File Size MD5 Checksum89 File Size SHA-256 Checksum
90 firefox_0.9.2.orig.tar.gz 9.5 MiB ...90 firefox_0.9.2.orig.tar.gz 9.5 MiB ...
9191
92 >>> print browser.getLink("firefox_0.9.2.orig.tar.gz").url92 >>> print browser.getLink("firefox_0.9.2.orig.tar.gz").url
@@ -281,7 +281,7 @@
281281
282 >>> print extract_text(find_portlet(browser.contents, 'Downloads'))282 >>> print extract_text(find_portlet(browser.contents, 'Downloads'))
283 Downloads283 Downloads
284 File Size MD5 Checksum284 File Size SHA-256 Checksum
285 firefox_0.9.2.orig.tar.gz 9.5 MiB ...285 firefox_0.9.2.orig.tar.gz 9.5 MiB ...
286286
287 >>> print browser.getLink("firefox_0.9.2.orig.tar.gz").url287 >>> print browser.getLink("firefox_0.9.2.orig.tar.gz").url
@@ -347,7 +347,7 @@
347 >>> print extract_text(find_portlet(347 >>> print extract_text(find_portlet(
348 ... browser.contents, 'Download files from current release (1.0-1)'))348 ... browser.contents, 'Download files from current release (1.0-1)'))
349 Download files from current release (1.0-1)349 Download files from current release (1.0-1)
350 File Size MD5 Checksum350 File Size SHA-256 Checksum
351 commercialpackage_1.0.orig.tar.gz 179 bytes ...351 commercialpackage_1.0.orig.tar.gz 179 bytes ...
352 commercialpackage_1.0-1.diff.gz 610 bytes ...352 commercialpackage_1.0-1.diff.gz 610 bytes ...
353 commercialpackage_1.0-1.dsc 567 bytes ...353 commercialpackage_1.0-1.dsc 567 bytes ...
@@ -427,7 +427,7 @@
427427
428 >>> print extract_text(find_portlet(browser.contents, 'Downloads'))428 >>> print extract_text(find_portlet(browser.contents, 'Downloads'))
429 Downloads429 Downloads
430 File Size MD5 Checksum430 File Size SHA-256 Checksum
431 commercialpackage_1.0.orig.tar.gz 179 bytes ...431 commercialpackage_1.0.orig.tar.gz 179 bytes ...
432 commercialpackage_1.0-1.diff.gz 610 bytes ...432 commercialpackage_1.0-1.diff.gz 610 bytes ...
433 commercialpackage_1.0-1.dsc 567 bytes ...433 commercialpackage_1.0-1.dsc 567 bytes ...
434434
=== modified file 'lib/lp/soyuz/templates/distributionsourcepackagerelease-files.pt'
--- lib/lp/soyuz/templates/distributionsourcepackagerelease-files.pt 2014-11-09 00:48:47 +0000
+++ lib/lp/soyuz/templates/distributionsourcepackagerelease-files.pt 2016-03-30 10:20:05 +0000
@@ -8,7 +8,7 @@
8 <tr>8 <tr>
9 <th>File</th>9 <th>File</th>
10 <th>Size</th>10 <th>Size</th>
11 <th>MD5 Checksum</th>11 <th>SHA-256 Checksum</th>
12 </tr>12 </tr>
13 </thead>13 </thead>
14 <tbody>14 <tbody>
@@ -20,7 +20,7 @@
20 tal:content="file/filename">foo_1.0.dsc</a>20 tal:content="file/filename">foo_1.0.dsc</a>
21 </td>21 </td>
22 <td tal:content="file/content/filesize/fmt:bytes">10 bytes</td>22 <td tal:content="file/content/filesize/fmt:bytes">10 bytes</td>
23 <td tal:content="file/content/md5">DEADBEEF</td>23 <td tal:content="file/content/sha256">DEADBEEF</td>
24 </tal:file_available>24 </tal:file_available>
25 <tal:file_unavailable condition="file/deleted">25 <tal:file_unavailable condition="file/deleted">
26 <td span="3">26 <td span="3">