[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#771604: tracker.debian.org: short description contains long description



Hi,

On Tue, 02 Dec 2014, Christophe Siraut wrote:
> In core.retrieve_data.UpdateRepositoriesTask._update_packages_file, the
> long description is not returned by the following loop (line 375, only
> the first line is retuned, i.e. the short description): 
> 
>   for stanza in deb822.Packages.iter_paragraphs(packages_file):
> 
> Testing the same method locally succeeds in returning the long description:
> 
>   for pkg in deb822.Packages.iter_paragraphs(file('/var/lib/dpkg/status')):
>       print pkg['Description']

This test is not very helpful:
- you use the status file which has the full description while we work on
  files downloaded by apt, those have descriptions split out in separate
  Translation-en files.
- did you test both in the same environment (i.e. same version of
  python-apt / python-debian) ?

In fact, I even wonder why we're getting short description at all...
since we're not accessing data directly via AptCache and instead we
are parsing the downloaded Packages files.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: http://www.freexian.com/services/debian-lts.html
Learn to master Debian: http://debian-handbook.info/get/


Reply to: