[packagekit] New signal for configuration file update

Daniel Nicoletti dantti85-pk at yahoo.com.br
Wed Jul 29 09:15:15 PDT 2009


> Why not adding a new policykit authorization for updating conf files ?

Well if it'll be calling a 3rd software I guess it's up to it.
Ok, I agree that merge stuff will deffinetly be a problem,
so it might be best to just warn the user as you proposed

confFilesUpdated( files, confManagerHelper);

The following files have newer versions, but the current one
was kept as default:
/etc/X111/xorg.conf
/etc/apache2/apache.conf

[Start config manager] [ keep as it is ]


Is that better?
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, 29 de Julho de 2009 12:49:46
> Assunto: Re: [packagekit] New signal for configuration file update
> 
> On Wed, Jul 29, 2009 at 3:45 PM, Daniel
> Nicolettiwrote:
> >
> > Hi, this was the next step I'd like to do
> > when simulate is done, we also have this behavior in Debian,
> > but we prefer to keep the old one installed.
> 
> In Gentoo too, old one is kept until the user launch a tool and take a
> decision (update, keep, merge).
> 
> > Now that this is being handled by someone else let me tell
> > what I was thinking...
> >
> > confFilesUpdated(USER_KEPT | UPDATED, file list)
> > updateConfFiles(KEEP_USER | UPDATE, fileList);
> >
> > Then we can show the user an UI like this:
> >
> > The following configuration files "were updated" |
> > "have a new version":
> > FILES:                                       "Keep current" | "Update"
> > /etc/apache2/apache.conf       [   ]
> > /etc/squid/squid.conf                [   ]
> >
> > * You distribution has already chosen the safest option,
> > if don't know why they appeared here, just leave this
> > dialog as it is.
> >
> > [ Change ] [ Cancel ]
> 
> I think it makes the feature more complicated. The UI shouldn't be
> involved. It should be up to distro tools because there will be a lot
> of distro-related things. For example, you propose "keep/update" but
> in Gentoo, we also have a 'merge' option which is adding a lot of
> issues like merging conflicts.
> So, as said Richard, the signal should suggest a tool.
> 
> > The dialog will be running as the user, and won't be able to merge xorg.conf.
> 
> Why not adding a new policykit authorization for updating conf files ?
> _______________________________________________
> 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