[packagekit] don't allow partial updates

Daniel Nicoletti dantti85-pk at yahoo.com.br
Tue Mar 29 03:28:26 PDT 2011

Ok, if the later is enough imo it would be much
better since no change in PK is required (only in the backend of course).

I'll try to do my changes in Apper (KPackageKit)
to disable the checkboxes when UpdatePackages
is not available.

is this ok Richard?

Daniel Nicoletti - KDE Developer
When a wicked man dies, his hope perishes;
all he expected from his power comes to nothing. Prov. 11:7

----- Mensagem original ----
> De: Jesse Zhang <zh.jesse at gmail.com>
> Para: Richard Hughes <hughsient at gmail.com>
> Cc: PackageKit users and developers list <packagekit at lists.freedesktop.org>
> Enviadas: Segunda-feira, 28 de Março de 2011 23:08:02
> Assunto: Re: [packagekit] don't allow partial updates
> On 03/28/2011 11:21 PM, Richard Hughes wrote:
> > Yup. There's two ways to  do this:
> > 
> > If the updates set from GetUpdates can't be  cherry-picked by the user,
> > we can emit a Message() with the type  PARTIAL_UPDATES_NOT_ALLOWED or
> > something like that, which we can then  catch in the GUI and hide the
> > checkbuttons.
> > 
> > An  alternative, would be much simpler if it is always true for a
> > backend.  Just don't implement UpdatePackages() -- just implement
> >  UpdateSystem().
> > 
> > I think that the moment, gpk-update-viewer  might explode in a ball of
> > fire, but it would be really simple to just  detect if UpdatePackages()
> > is implemented and if not, hide the  checkboxes and use
> > pk_task_update_system() instead. I guess kpackagekit  would need the
> > same fix if it doesn't do this already.
> > 
> >  I guess it depends on whether we need to have all the updates done at
> >  once every time, or just some times.
> Both sound reasonable, but for  conary the later solution is actually
> enough. The current conary backend does  implement UpdatePackages() but
> it shouldn't have. For conary, the whole  system is defined in a 'group'
> package, which is versioned and contains  packages that all have a
> definitive version. So packages should always be  updated together.
> Conary now has a new operation mode (called 'system  model'). If it's
> enabled, the above behavior is enforced. Packages can't be  updated to a
> different version than that is referenced in the group, unless  you use
> some special  commands.
> jesse
> _______________________________________________
> PackageKit  mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit


More information about the PackageKit mailing list