[packagekit] get-depends and get-requires probably shouldn't use an array of package_ids

Daniel Nicoletti dantti85-pk at yahoo.com.br
Wed Jul 8 06:48:46 PDT 2009


>I didn't try to install two packages and see the result.
>It looks to be the only use case.
Yep, iirc this is the only use case. (including removing and updating)

>So, each backend have to manage that ?
Yes, It's up to the backend to resolve an array
of packages to get it's deps.
==Maybe== packagekit automatically drops duplicated
packages, but imo backends shouldn't rely on that.

Daniel.



----- Mensagem original ----
De: Mounir Lamouri <mounir.lamouri at gmail.com>
Para: PackageKit users and developers list <packagekit at lists.freedesktop.org>
Enviadas: Quarta-feira, 8 de Julho de 2009 10:44:26
Assunto: Re: [packagekit] get-depends and get-requires probably shouldn't use an array of package_ids

On Wed, Jul 8, 2009 at 3:34 PM, Daniel
Nicoletti<dantti85-pk at yahoo.com.br> wrote:
>
> Hey,
> gnome-packagekit should and probably is using
> the array of packages.
> And KPackageKit.
>
> the reason for this is that GUI don't know how to handle
> dependencies, and each distribution has it's own way to
> do it. So if I want to install foo and bar, I get the depends for
> both at the same time, and the backend will not let duplicated
> dependencies get out. This is really important and should stay
> as it is.

I didn't try to install two packages and see the result.
It looks to be the only use case.

> In the past the behavior was what you said but It was a pain
> to get rid of the duplicated ones, and sometimes one package
> depends on foo1 and the other needs foo1.2 which in the
> end WILL install foo1.2 so having this handled by the backend
> IS IMPORTANT.

So, each backend have to manage that ?

Now, I understand why it takes an array.

Thanks :)
Mounir
_______________________________________________
PackageKit mailing list
PackageKit at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/packagekit



      ____________________________________________________________________________________
Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com



More information about the PackageKit mailing list