Bug#758397: libapt-pkg4.12: no initializer for pkgDepCache::iPolicyBrokenCount
Package: libapt-pkg4.12
Version: 1.0.6
Severity: normal
Dear Maintainer,
At the beginning of pkgDepCache::Update(OpProgress *), there are several lines
that clear most of the counters. There isn't one for iPolicyBrokenCount. I
think it's starting from some garbage value.
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.
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.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: armel (armv5tejl)
Kernel: Linux 3.15.1-00011-gfe6ab9b
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages libapt-pkg4.12 depends on:
ii libbz2-1.0 1.0.6-7
ii libc6 2.19-9
ii libgcc1 1:4.9.1-5
ii liblzma5 5.1.1alpha+20120614-2
ii libstdc++6 4.9.1-5
ii multiarch-support 2.19-9
ii zlib1g 1:1.2.8.dfsg-1
libapt-pkg4.12 recommends no packages.
libapt-pkg4.12 suggests no packages.
-- no debconf information
Reply to: