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
1=== modified file 'lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt'
2--- lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt 2015-11-24 01:44:28 +0000
3+++ lib/lp/soyuz/stories/soyuz/xx-distributionsourcepackagerelease-pages.txt 2016-03-30 10:20:05 +0000
4@@ -195,8 +195,9 @@
5 >>> print extract_text(
6 ... find_portlet(anon_browser.contents, 'Downloads'))
7 Downloads
8- File Size MD5 Checksum
9- testing-dspr_1.0.dsc 28 bytes 5913c3ad52c14a62e6ae7eef51f9ef42
10+ File Size SHA-256 Checksum
11+ testing-dspr_1.0.dsc 28 bytes
12+ ac512102db9724bee18f26945efeeb82fdab89819e64e120fbfda755ca50c2c6
13 View changes file
14
15 >>> print anon_browser.getLink('testing-dspr_1.0.dsc').url
16@@ -218,8 +219,9 @@
17 >>> print extract_text(
18 ... find_portlet(anon_browser.contents, 'Downloads'))
19 Downloads
20- File Size MD5 Checksum
21- testing-dspr_1.0.dsc 28 bytes 5913c3ad52c14a62e6ae7eef51f9ef42
22+ File Size SHA-256 Checksum
23+ testing-dspr_1.0.dsc 28 bytes
24+ ac512102db9724bee18f26945efeeb82fdab89819e64e120fbfda755ca50c2c6
25 Available diffs
26 diff from 0.9 to 1.0 (7 bytes)
27 View changes file
28
29=== modified file 'lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt'
30--- lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt 2016-02-05 15:16:29 +0000
31+++ lib/lp/soyuz/stories/soyuz/xx-distroseries-sources.txt 2016-03-30 10:20:05 +0000
32@@ -86,7 +86,7 @@
33 >>> print extract_text(find_portlet(
34 ... content, 'Download files from current release (0.9)'))
35 Download files from current release (0.9)
36- File Size MD5 Checksum
37+ File Size SHA-256 Checksum
38 firefox_0.9.2.orig.tar.gz 9.5 MiB ...
39
40 >>> print browser.getLink("firefox_0.9.2.orig.tar.gz").url
41@@ -281,7 +281,7 @@
42
43 >>> print extract_text(find_portlet(browser.contents, 'Downloads'))
44 Downloads
45- File Size MD5 Checksum
46+ File Size SHA-256 Checksum
47 firefox_0.9.2.orig.tar.gz 9.5 MiB ...
48
49 >>> print browser.getLink("firefox_0.9.2.orig.tar.gz").url
50@@ -347,7 +347,7 @@
51 >>> print extract_text(find_portlet(
52 ... browser.contents, 'Download files from current release (1.0-1)'))
53 Download files from current release (1.0-1)
54- File Size MD5 Checksum
55+ File Size SHA-256 Checksum
56 commercialpackage_1.0.orig.tar.gz 179 bytes ...
57 commercialpackage_1.0-1.diff.gz 610 bytes ...
58 commercialpackage_1.0-1.dsc 567 bytes ...
59@@ -427,7 +427,7 @@
60
61 >>> print extract_text(find_portlet(browser.contents, 'Downloads'))
62 Downloads
63- File Size MD5 Checksum
64+ File Size SHA-256 Checksum
65 commercialpackage_1.0.orig.tar.gz 179 bytes ...
66 commercialpackage_1.0-1.diff.gz 610 bytes ...
67 commercialpackage_1.0-1.dsc 567 bytes ...
68
69=== modified file 'lib/lp/soyuz/templates/distributionsourcepackagerelease-files.pt'
70--- lib/lp/soyuz/templates/distributionsourcepackagerelease-files.pt 2014-11-09 00:48:47 +0000
71+++ lib/lp/soyuz/templates/distributionsourcepackagerelease-files.pt 2016-03-30 10:20:05 +0000
72@@ -8,7 +8,7 @@
73 <tr>
74 <th>File</th>
75 <th>Size</th>
76- <th>MD5 Checksum</th>
77+ <th>SHA-256 Checksum</th>
78 </tr>
79 </thead>
80 <tbody>
81@@ -20,7 +20,7 @@
82 tal:content="file/filename">foo_1.0.dsc</a>
83 </td>
84 <td tal:content="file/content/filesize/fmt:bytes">10 bytes</td>
85- <td tal:content="file/content/md5">DEADBEEF</td>
86+ <td tal:content="file/content/sha256">DEADBEEF</td>
87 </tal:file_available>
88 <tal:file_unavailable condition="file/deleted">
89 <td span="3">