On Tue, Feb 26, 2008 at 08:52:07PM -0800, Daniel Burrows wrote: > Package: python-apt > Version: 0.7.5 > Severity: wishlist > Tags: patch > > pkgCache::DepType, pkgCache::CompType, and pkgCache::CompTypeDeb are > handy for printing user-readable information about dependencies; it > would be nice if they were bound. I've attached a patch that does just > this.
As far as I know, the integer values are not returned anywhere in apt_pkg, except for apt_pkg.SourceRecords.build_depends, but these export BuildDepType and the CompType. I would prefer to make SourceRecords.build_depends return dictionaries just like Version.depends_list and Version.depends_list_str, and not export those numeric values at all. Because we won't be exporting those values anymore after this change, we will be able to close this bug. And we will have a more unified API and you can also access the translations (e.g. Dependency.dep_type is the translated dependency type already; BuildDependency.dep_type would be the same). I hope this is sufficient for you. -- Julian Andres Klode - Free Software Developer Debian Developer - Contributing Member of SPI Ubuntu Member - Fellow of FSFE Website: http://jak-linux.org/ XMPP: [email protected] Debian: http://www.debian.org/ SPI: http://www.spi-inc.org/ Ubuntu: http://www.ubuntu.com/ FSFE: http://www.fsfe.org/ -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

