[Bug 916467] Re: Double entries in apt_pkg.Cache.packages
Julian Andres Klode
juliank at ubuntu.com
Sat Jan 14 16:00:30 UTC 2012
No, they're not. There are just multiple packages having the same name,
but different architectures. For full name + architecture, use
get_fullname().
In the apt module, the name attribute includes architecture information
for non-native packages, in the lower level apt_pkg module, the bindings
are more direct and thus only include the name, not the architecture.
** Changed in: python-apt (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-apt in Ubuntu.
https://bugs.launchpad.net/bugs/916467
Title:
Double entries in apt_pkg.Cache.packages
Status in “python-apt” package in Ubuntu:
Invalid
Bug description:
Some packages are duplicated in apt_pkg.Cache.packages. step to reproduce:
(in a python shell)
import apt_pkg
apt_pkg.init()
cache = apt_pkg.Cache()
for pkg in cache.package
print(pkg.name)
Ubuntu 11.10 Oneiric
Python version: 2.7
python-apt version: 0.8.0ubuntu9
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/916467/+subscriptions
More information about the foundations-bugs
mailing list