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

Bug#542705: python-apt: Forced use of the private depcache to resolve complex situations



Package: python-apt
Version: 0.7.12.1
Severity: normal

In PackageKit apt backend I use the problem resolver directly e.g. to make sure
that all given packages are installed which are queued for a transaction.

Just calling apt.Packagek.mark_install for each package could unmark the 
installation of a previous package during the resolver call (autoFix=True).
So I have to protect all the to be installed packages in the resolver.

The factory apt_pkg.GetPkgProblemResolver requires the private _depcache of
an apt.Cache. Furthermore I need the IsInstBroken and IsNowBroken method for
a more detailed error reporting.

It would be nice to habe a stable API for this.

Cheers,

Sebastian

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.9-6-4.8 0.7.22.2   Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.22.2   APT utility programs
ii  libc6                         2.9-23     GNU C Library: Shared libraries
ii  libgcc1                       1:4.4.1-1  GCC support library
ii  libstdc++6                    4.4.1-1    The GNU Standard C++ Library v3
ii  lsb-release                   3.2-23     Linux Standard Base version report
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-central                0.6.11     register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes                     3.10.2-1   ISO language, territory, currency,
ii  libjs-jquery                  1.3.3-1    JavaScript library for dynamic web

Versions of packages python-apt suggests:
pn  python-apt-dbg                <none>     (no description available)
ii  python-gtk2                   2.14.1-3   Python bindings for the GTK+ widge
ii  python-vte                    1:0.20.5-1 Python bindings for the VTE widget

-- no debconf information



Reply to: