Announcing yum-merge-conf, a yum plugin to merge configuration files

Tony Nelson tonynelson at georgeanelson.com
Tue Mar 13 16:31:12 UTC 2007


At 10:57 AM -0500 3/13/07, Rex Dieter wrote:
>Tony Nelson wrote:
>
>> At 7:52 AM +0100 3/13/07, Aurelien Bompard wrote:
>>>Neal Becker wrote:
>>>> This sounds great!  I haven't looked at the code yet.
>>>
>>>It's pretty trivial, you'll see
>>>
>>>> Will it also ignore cases when the new config hasn't actually changed,
>>>> and
>>>> silently remove the redundant copy?  That would be really great.
>>>
>>>If RPM created a copy, it means something has changed.
>> 
>> One would think so, but no, not always.  Vim's rpm is one offender
>> (retyped):
>> 
>>     # ls /etc/vimrc*
>>     /etc/vimrc  /etc/vimrc.rpmnew
>>     # diff /etc/vimrc*
>
>timestamp, owner, permissions?

(retyped):

    # ll /etc/vimrc*
    -rw-r--r-- 1 root root 1473 Nov 15 21:59 /etc/vimrc
    -rw-r--r-- 1 root root 1473 Mar  9  2006 /etc/vimrc.rpmnew
    #

OK, so maybe it's not still doing it there.  But this one looks more
promising (I hope):

    # ll /etc/profile.d/krb*
    -rwxr-xr-x 1 root root 218 Jan  9 15:03 /etc/profile.d/krb5.csh
    -rwxr-xr-x 1 root root 218 Jan  9 15:03 /etc/profile.d/krb5.csh.rpmnew
    -rwxr-xr-x 1 root root 229 Jan  9 15:03 /etc/profile.d/krb5.sh
    -rwxr-xr-x 1 root root 229 Jan  9 15:03 /etc/profile.d/krb5.sh.rpmnew
    # diff /etc/profile.d/krb*.csh*
    # diff /etc/profile.d/krb*.sh*
    #
-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the fedora-devel-list mailing list