[Yum-devel] New plugin: merge-conf
Aurelien Bompard
gauret at free.fr
Mon Apr 9 08:46:39 UTC 2007
Hi yummers,
There's a feature of another package manager that I like: when a config file
has changed, it asks you if you want to keep your local copy or if you want
to install the package's version. RPM is non-interactive, so it's not
supposed to do this. But I thought this could be implemented in a yum
plugin.
I've written a plugin which does just that:
http://gauret.free.fr/fichiers/rpms/fedora/yum-merge-conf/merge-conf.py
http://gauret.free.fr/fichiers/rpms/fedora/yum-merge-conf/yum-merge-conf-1.3-1.noarch.rpm
Add the --merge-conf command line option to your yum update, and it will ask
you what to do with those .rpm{save,new} files as the packages are
installed. You'll be able to diff the files, choose your version, run
vimdiff on them, or spawn a shell to check further.
It should work with yum 3.0.x and yum 3.1.x at least. Please have a look,
the code is pretty easy. Since it's my first yum plugin and I'm not
completely familiar with the yum api, I'm sure it could use some love, so
please tell me what I can improve.
Thanks,
Aurélien
--
http://aurelien.bompard.org ~~~~ Jabber : abompard at jabber.fr
En essayant continuellement, on finit par réussir. Donc plus ça rate, plus
on a des chances que ça marche. -- devise Shadok.
More information about the Yum-devel
mailing list