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

Bug#733489: python-apt: Improve 'Dependency' and 'BaseDependency' to get target package versions that satisfy dependencies



On Mon, Jan 06, 2014 at 08:09:43AM +0100, Michael Schaller wrote:
> Awesome! My first patch in Debian. ^^
> Thanks for all your patience so far...
> 
> Next thing on the agenda is the relation handling in BaseDependency.
> I'm wondering if I'm the only one trying to use this but the
> relation handling seems to be totally broken at the moment. There is
> a huge difference between the Debian manual (what I should get) and
> the actual results from python-apt..

python-apt does not use Debian-style dependencies, it uses the
style everyone else uses. And this is documented. Before the new
API was introduced in 0.7.9X, some parts were using Debian-style
and some were using these normal ones. I then unified them to only
use the normal ones because (IIRC) most parts were using them
already. APT itself exports both variants, the one we are using
is pkgCache::CompType, the other one is pkgCache::CompTypeDeb.

Just view it as an abstraction. We can introduce a comp_type_deb
in Dependency, though, if you like.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Please do not top-post if possible.


Reply to: