Aurelien Bompard wrote:
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
Hi Aurélien.

It looks good to me, if you want i can add to the other plugins in yum-utils.

Tim
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to