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

Bug#758397: libapt-pkg4.12: no initializer for pkgDepCache::iPolicyBrokenCount



Hi,

On Sun, Aug 17, 2014 at 07:13:19AM +0000, microrffr@gmail.com wrote:
> I'm trying to write a tool that uses libapt-pkg.
> I tried printing out Cache->PolicyBrokenCount() immediately after where I call
> Cache.BuildDepCache(&Prog), and it was a huge number, like 21309720.

Good catch - having a quick look at git (4ef9a929) says me that this bug
recently had its eight birthday!

> I don't know what impact this has on apt itself. Probably not much. It never
> gets displayed, and I only see it used in a few places to determine whether or
> not to loop through the packages and check them one by one.

Indeed, there is probably little effect in general, but only a correct
counter is a good counter. :)


I would like to commit the fix with proper attribution, so it would be
nice if you could give me your name (as the From line just includes your
mail address), but if you don't want to that is fine, too.


Best regards

David Kalnischkies

Attachment: signature.asc
Description: Digital signature


Reply to: