[packagekit] Questions about Get Depends and Get Requires
Richard Hughes
hughsient at gmail.com
Tue Dec 11 09:12:27 PST 2007
On Tue, 2007-12-11 at 11:06 -0500, Matthias Clasen wrote:
> On Dec 11, 2007 3:00 AM, Richard Hughes <hughsient at gmail.com> wrote:
> > On Thu, 2007-12-06 at 08:02 -0700, Boyd Timothy wrote:
> > > 1) I noticed that libzypp doesn't just return package dependencies,
> > > but also single libraries and files. Some of these libraries can be
> > > provided by multiple packages. Do any other PackageKit backends have
> > > to deal with that? ...and if so, what's the recommended thing to do?
> > > Just return pacakges?
> >
> > Yes, just packages. The other stuff isn't important to PackageKit.
> >
>
> Well, it is important to PackageKit in the sense that installing a
> package that requires
> libfoo.so.1 _will_ drag in some package that provides libfoo.so.1.
Ohh sure, what I meant to say is that if libfoo.so.1 is required by gimp
(and libfoo.so.1 is packaged in libfoo2 package) then gimp requires the
libfoo2 package explicitly.
> I
> guess it is debatable whether you need to represent that in the list
> of dependencies in the ui. But quite a few package have the bulk of
> their dependencies pulled in in this way, so if the dependency list in
> the ui only ever displays explicit package requires, then it could be
> a bit misleading. It would e.g for most gnome apps not reflect that
> they require gtk...
I think sticking with per-package deps is the way to go, I don't think
we need to expose the "type of dep" to the user.
Richard.
More information about the PackageKit
mailing list