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

Bug#468123: Please bind pkgCache::DepType, pkgCache::CompType, and pkgCache::CompTypeDeb.



tag 468123 fixed-upstream
thanks

Tagging this as fixed-upstream, because the 'jak' branch does not
export the input values anymore and the requested functions are
therefore useless.

We export the strings directly in the Python extension and if you
need a translated dependency type, you can use 'DepType' attribute
of the Dependency object (see Version.DependsList).

On Mon, Jun 15, 2009 at 04:11:44PM +0200, Julian Andres Klode wrote:
> 
> 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.
It returns a dictionary like Version.depends_list_str as of revision 311
of the debian-experimental and jak branches.

Packages for i386 and amd64, as well as source are available from:

    deb http://people.debian.org/~jak/debian/ experimental/
    deb-src http://people.debian.org/~jak/debian/ experimental/


> 
> 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).
This won't be done exactly this way. Instead, we will only use untranslated
strings as the names of the Build-Depends field and similar are not translated
in apt.

-- 
Julian Andres Klode  - Free Software Developer
   Debian Developer  - Contributing Member of SPI
   Ubuntu Member     - Fellow of FSFE

Website: http://jak-linux.org/   XMPP: juliank@jabber.org
Debian:  http://www.debian.org/  SPI:  http://www.spi-inc.org/
Ubuntu:  http://www.ubuntu.com/  FSFE: http://www.fsfe.org/



Reply to: