[packagekit] PackageKit Apt backend patch

Sebastian Heinlein glatzor at ubuntu.com
Tue Dec 4 02:54:23 PST 2007


Am Dienstag, den 04.12.2007, 00:12 +0100 schrieb Tom Parker:
> On 03/12/2007, Mario <mario.danic at gmail.com> wrote:
> > here's a quick patch for Apt backend written by Michael Vogt.
> > It mainly cleans up the code by removing duplicated functionality
> > for code which already exists in python-apt and it's "apt" module.
> >
> > Anyway, all the apt folks ... let's collaborate :)
> 
> Haven't had a detailed look, but looks pretty good from a first
> glance. I'll have a better look at some point tommorrow.
> 
> One of the big remaining issues with the use of python-apt is how to
> get it to install (or just figure out the dependencies for) a
> particular version of a particular package. Using the standard
> interfaces for it, it appears to be pretty easy to get dependencies
> for and install a package, but *only* if you want the "default"
> version. If someone can write some code to do the equivalent of
> markInstall() for arbitrary versions of a package (from the list of
> available) ones, then this would be *very* helpful.

Take a look at the SetCandidateVer method of depcache.

But why do you want to do this at all? Overriding the candidate version
should only be done in some rare cases. I don't see the need for such a
feature. AFAIK there isn't any distribution which provides data
migration for downgrades.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071204/94b889e8/attachment-0004.pgp>


More information about the PackageKit mailing list