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

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



Hi,

On Thu, 11 Dec 2014, Christophe Siraut wrote:
> Raphael Hertzog wrote:
> > 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.
> 
> We could adapt AptCache (in core.utils.packages) and use apt_pkg for
> retrieving version and descriptions (short and long) for binary
> packages. But then it seems more coherent to use to same mechanism for
> retrieving source packages informations. I wonder why we opted for
> manually parsing the Packages and Sources files in the first place, and
> what would be the impact on performances.

The reason we parse individual files is that we want to only
process modified files since the last update (precisely for performance
reasons). apt_pkg doesn't let us extract a list of packages coming from a
specific Packages/Sources file.

But the whole retrieve_data.py really needs some better design and quite
likely a rewrite. Its huge resource consumption is also a problem.

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: