apt-ftparchive generates corrupt Sources stanzas for .dsc files without Checksums-* fields
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Fix Released
|
Critical
|
Unassigned | ||
Lucid |
Fix Released
|
Critical
|
Unassigned | ||
Maverick |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Binary package hint: apt
TEST CASE:
1. use lucid
2. run ( cd /tmp ; apt-get source -d appconfig ; apt-ftparchive sources .)
3. verify that there is a empty line between Checksums-Sha1 and Checksums-Sha256
4. instal apt from lucid-proposed
5. repeat step 2
6. verify that the empty line is gone
The Ubuntu master archive system was recently upgraded to lucid, and now our Sources files are corrupt in places. It appears to happen to source packages that are old enough not to have Checksums-* fields in their .dsc files, so apt-ftparchive has to synthesise them. The stanzas look like this:
Package: appconfig
Binary: libappconfig-perl
Version: 1.56-2
Priority: optional
Section: interpreters
Maintainer: Stefan Hornburg (Racke) <email address hidden>
Build-Depends: perl (>= 5.6.0-16), debhelper (>= 3.0.18)
Architecture: all
Standards-Version: 3.6.1.0
Format: 1.0
Directory: pool/main/
Files:
732e037fe9182c
b65cd919279777
4c8153d70c670b
Checksums-Sha1:
e7ea3cb3eb1781
Checksums-Sha256:
6a50dc97fa7950
The blank lines after Checksums-Sha1: and Checksums-Sha256: contain a single space.
Changed in apt (Ubuntu Maverick): | |
status: | New → In Progress |
Changed in apt (Ubuntu Lucid): | |
importance: | Undecided → Critical |
status: | New → In Progress |
tags: | added: testcase |
apt-ftparchive on maverick has the same bug. To reproduce:
apt-get -d source appconfig
apt-ftparchive sources .