Contents files are not listed with checksums
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Launchpad itself |
Low
|
Colin Watson | ||
| | debmirror (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: debmirror
debmirror 1:2.4.4ubuntu2 from lucid lynx appears to ignore --getcontents.
debmirror's --getcontents option appears to do nothing. --diff=
I did some troubleshooting, and found that even forcing add_bytes in the if ($getcontents) block appears to be ignored.
---snip including my added debug output--
Get Packages and Sources files and other miscellany.
dists/dapper/
dists/dapper/
dists/dapper-
dists/dapper-
dists/dapper-
dists/dapper-
dists/dapper-
dists/dapper-
dists/dapper-
dists/dapper-
dists/hardy/
dists/hardy/
dists/hardy-
dists/hardy-
dists/hardy-
dists/hardy-
dists/hardy-
dists/hardy-
dists/hardy-
dists/hardy-
dists/lucid/
dists/lucid/
dists/lucid-
dists/lucid-
dists/lucid-
dists/lucid-
dists/lucid-
dists/lucid-
dists/lucid-
dists/lucid-
Parse Packages and Sources files and add to the file list everything therein.
Download all files that we need to get (0 B).
--snip--
Related branches
- William Grant: Approve (code) on 2015-03-19
-
Diff: 292 lines (+98/-25)6 files modifiedlib/lp/archivepublisher/publishing.py (+8/-2)
lib/lp/archivepublisher/scripts/publish_ftpmaster.py (+24/-12)
lib/lp/archivepublisher/scripts/publishdistro.py (+19/-6)
lib/lp/archivepublisher/tests/test_generate_contents_files.py (+17/-3)
lib/lp/archivepublisher/tests/test_publish_ftpmaster.py (+2/-1)
lib/lp/archivepublisher/tests/test_publisher.py (+28/-1)
| Changed in debmirror (Ubuntu): | |
| status: | New → Confirmed |
| Changed in debmirror (Ubuntu): | |
| status: | Confirmed → New |
| Tim Edwards (tkedwards) wrote : | #1 |
| Launchpad Janitor (janitor) wrote : | #2 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in debmirror (Ubuntu): | |
| status: | New → Confirmed |
I can confirm this ... we have the same issue here!
| Steve Atwell (satwell) wrote : | #4 |
This actually appears to be a problem with the Ubuntu archive, not debmirror. The Release files in the Ubuntu archive are missing hashes for the Contents-* files. E.g., see:
http://
Compare this to a Debian archive's Release file, which *does* list the Contents-* files:
http://
I think there's a minor bug here where debmirror should be complaining that it can't find Contents files rather than silently dropping them, but the underlying problem seems to be with the Ubuntu archive.
| Tim Edwards (tkedwards) wrote : | #5 |
I've emailed <email address hidden> as that's listed as the way to report problems with the mirrors. I'll post here if I get a response from them.
| LaMont Jones (lamont) wrote : | #6 |
Launchpad generates the contents files, making this bug in launchpad
| affects: | debmirror (Ubuntu) → launchpad |
| Changed in launchpad: | |
| status: | Confirmed → New |
| Changed in debmirror (Ubuntu): | |
| status: | New → Confirmed |
| summary: |
- debmirror ignores --getcontents + Contents files are not listed with checksums |
| Changed in launchpad: | |
| status: | New → Triaged |
| importance: | Undecided → Critical |
| Changed in launchpad: | |
| importance: | Critical → Low |
| tags: | added: soyuz-publish |
can anybody give us an update on this bug?
| Tong Sun (suntong001) wrote : | #8 |
> can anybody give us an update on this bug?
+1!
I'm building Debian source packages from Perl modules with dh-make-perl, which relies on apt-file for dependencies checking. However,
apt-file update says:
Ignoring source without Contents File:
http://
I.e., dh-make-perl dependencies checking for my Perl modules will *always fail*, even I have the dependencies modules in my PPA.
| Changed in launchpad: | |
| status: | Triaged → Confirmed |
| William Grant (wgrant) wrote : | #9 |
Tong Sun, that's bug #335161.
| Changed in launchpad: | |
| status: | Confirmed → Triaged |
| Manuel Vazquez Acosta (mva-led) wrote : | #10 |
So... Is anyone solving this issue?
Last comment is five months old.
| William Grant (wgrant) wrote : | #11 |
It's not currently on our roadmap to fix, but Launchpad's open source and we'd be happy to mentor someone to fix it themselves. See https:/
| Changed in launchpad: | |
| assignee: | nobody → Colin Watson (cjwatson) |
| status: | Triaged → In Progress |
| Colin Watson (cjwatson) wrote : | #12 |
This is not quite entirely as trivial as it first looks. Firstly, we need to make sure to put Contents in place before publishing the rest of the archive, rather than the other way round as is done today. Secondly, we need to ensure that if any of a pocket's Contents files have changed then the pocket is marked dirty and hence has its Release file rewritten, which is not straightforwardly the case today. There may be a couple of other subtleties I've missed.
| Launchpad QA Bot (lpqabot) wrote : | #13 |
Fixed in stable r17407 <http://
| tags: | added: qa-needstesting |
| Changed in launchpad: | |
| status: | In Progress → Fix Committed |
| Colin Watson (cjwatson) wrote : | #14 |
Note that this fix will take effect from vivid onwards (well, and for non-release suites such as -updates), unless we have some pressing reason to regenerate the Release files for stable releases. To date, we've only done that when we've had to remove packages due to pressing legal reasons.
| tags: |
added: qa-ok removed: qa-needstesting |
| Changed in launchpad: | |
| status: | Fix Committed → Fix Released |

I can confirm that this bug is still present in 11.10.
After running debmirror with --getcontents I get:
sudo apt-file update files/packages/ ubuntu/ dists/oneiric/ Contents- amd64.gz' : No such file or directory files/packages/ ubuntu/ dists/oneiric- updates/ Contents- amd64.gz' : No such file or directory files/packages/ ubuntu/ dists/oneiric- security/ Contents- amd64.gz' : No such file or directory
cp: cannot stat `//home/
cp: cannot stat `//home/
cp: cannot stat `//home/