apt.Package.installed is not multiarch-capable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: python-apt
python-apt's notion of an "installed" package is a single apt.package.Version object, which has a single 'architecture' attribute. With the introduction of multiarch, it's possible for multiple architectures of a package to be installed at the same time on the system, and this needs to be queryable somehow through the python api.
It seems to me that this information doesn't belong as a list of architectures attached to a Version object, since a Version object gets used in various contexts where this doesn't make sense; so instead I guess we want a list of Version objects, which makes for a backwards-
'multiarch_
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: python-apt 0.7.96.1ubuntu11
ProcVersionSign
Uname: Linux 2.6.35-24-generic x86_64
Architecture: amd64
Date: Sat Jan 15 19:32:44 2011
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: python-apt
tags: |
added: multiarch natty removed: maverick |
A package has one architecture, and a version has one architecture. All packages with one name, ignoring the architecture, are called groups in APT, but the bindings are not there yet. I personally would like to see multi-arch in dpkg and a test repository first, so we can try the code when we write it.