Comment 4 for bug 572128

Revision history for this message
Colin Watson (cjwatson) wrote :

There are sort of two separate problems here. One is that the Translations-* files generated by custom DDTP uploads aren't indexed. The other is that the Translations-en files generated by apt-ftparchive by request of Launchpad for Ubuntu Oneiric onward aren't indexed. The latter is what's caused a regression recently, because at least English package descriptions used to be available from the output of debmirror, but they aren't any more for Oneiric.

The reason I think we need to consider these separately is that I rather suspect that Launchpad doesn't really know internally about custom uploads at the point when it would need to generate these Index files; they get stuffed onto its filesystem when the custom uploads are first published, but thereafter it more or less forgets about them. The only files that normally go into Launchpad-generated indexes are those that are actually recorded in the Launchpad database.

So, I propose that we fix this in two stages, of which only the first is urgent (because it's fixing a regression). First, generate i18n/Index files for distroseries where include_long_descriptions is True, and include them in Release; these index files should initially only refer to Translations-en.bz2. Secondly, once the files from DDTP custom uploads are recorded somehow in the database rather than merely on the filesystem, they can be added to i18n/Index.