Re: rpmconf and new feature to configure application

2013-07-26 Thread Jan Zeleny
Dne Čt 25. července 2013 11:38:28, Colin Walters napsal(a): On Thu, 2013-07-25 at 14:42 +0200, Miroslav Suchý wrote: So I put in rpmconf this code (little bit simplified here): if [ -x /usr/share/rpmconf/$PACKAGE ]; then /usr/share/rpmconf/$PACKAGE

Re: rpmconf and new feature to configure application

2013-07-26 Thread Florian Weimer
On 07/25/2013 05:35 PM, Colin Walters wrote: You might be interested to know that OSTree does that automatically: # ostree admin config-diff Mgroup Mfstab Mgshadow Mshadow Mpasswd Mresolv.conf Avconsole.conf A.pwd.lock Apasswd- Ashadow- Agroup- A

Re: rpmconf and new feature to configure application

2013-07-26 Thread Florian Weimer
On 07/25/2013 05:38 PM, Colin Walters wrote: On Thu, 2013-07-25 at 14:42 +0200, Miroslav Suchý wrote: So I put in rpmconf this code (little bit simplified here): if [ -x /usr/share/rpmconf/$PACKAGE ]; then /usr/share/rpmconf/$PACKAGE fi Have you looked

Re: rpmconf and new feature to configure application

2013-07-26 Thread Neal Becker
What I really want is rpmconf mode for emacs. I could use all the nice tools like emacs ediff. -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel

Re: rpmconf and new feature to configure application

2013-07-26 Thread Miroslav Suchý
On 07/26/2013 02:23 PM, Neal Becker wrote: What I really want is rpmconf mode for emacs. I could use all the nice tools like emacs ediff. Can you elaborate? I'm not familiar neither with emacs nor ediff? -- Miroslav Suchy Red Hat, Software Engineer -- devel mailing list

rpmconf and new feature to configure application

2013-07-25 Thread Miroslav Suchý
Hi, I just built into rawhide new rpmconf(8) which has new feature - to configure application. Background: After each yum upgrade/install you should resolve .rpmnew/.rpmsave files. Rpmconf(8) will help you with that. But it will not help you with initial configuration. Especially with

Re: rpmconf and new feature to configure application

2013-07-25 Thread Christopher Meng
Great. I have a package which needs upgrade script sometimes... Question, will this tool backup the conf if some unexpected things happen? If users find that things are not good as expected, how to revert? Thanks. -- *Yours sincerely,* *Christopher Meng* Always playing in Fedora Project

Re: rpmconf and new feature to configure application

2013-07-25 Thread Miroslav Suchý
On 07/25/2013 03:48 PM, Christopher Meng wrote: I have a package which needs upgrade script sometimes... Question, will this tool backup the conf if some unexpected things happen? If users find that things are not good as expected, how to revert? No, I did not target neither backup nor

Re: rpmconf and new feature to configure application

2013-07-25 Thread Thomas Moschny
In my opinion, the best solution would be to automatically keep a copy of the original configuration file (maybe RPM could do that - always wondered why it doesn't, or one could use a tool like etckeeper). For files in /etc that have to be changed, I usually make a backup copy, enabling me to do

Re: rpmconf and new feature to configure application

2013-07-25 Thread Colin Walters
On Thu, 2013-07-25 at 17:28 +0200, Thomas Moschny wrote: In my opinion, the best solution would be to automatically keep a copy of the original configuration file (maybe RPM could do that - always wondered why it doesn't, or one could use a tool like etckeeper). You might be interested to know

Re: rpmconf and new feature to configure application

2013-07-25 Thread Colin Walters
On Thu, 2013-07-25 at 14:42 +0200, Miroslav Suchý wrote: So I put in rpmconf this code (little bit simplified here): if [ -x /usr/share/rpmconf/$PACKAGE ]; then /usr/share/rpmconf/$PACKAGE fi Have you looked at Debconf? In a past life I wrote the Debconf