[Mageia-dev] "created as .rpmnew" lies?

Colin Guthrie mageia at colin.guthr.ie
Tue Feb 12 12:19:45 CET 2013


'Twas brillig, and EatDirt at 12/02/13 10:06 did gyre and gimble:
> Within today update of cauldron:
> 
>  7/232: Default-kde4-config   ###########################
> warning: /var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc
> created as
> /var/lib/mageia/kde4-profiles/Default/share/config/kdm/kdmrc.rpmnew
> 
> Now if I go to that directory, I see this is not the case:
> 
>  ls -trl
> total 80
> -rw-r--r-- 1 root root   347 May 21  2011 backgroundrc
> -rw-r--r-- 1 root root 21677 Jun  6  2012 kdmrc.rpmsave
> drwxr-xr-x 3 root root  4096 Feb  6 22:29 themes/
> -rw-r--r-- 1 root root 21689 Feb 12 11:02 kdmrc.ccpbackup
> -rw-r--r-- 1 root root 21630 Feb 12 11:02 kdmrc
> 
> It has been created as kdmrc, with a rpmsave. It seems we have a problem
> in between the message and what is actually done?

No, I think the file itself is indeed created as a .rpmnew at the time
RPM prints that message.

In the spec:
http://svnweb.mageia.org/packages/cauldron/mageia-kde4-config/current/SPECS/mageia-kde4-config.spec?revision=397256&view=markup#l117

we use the "ccp" program to merge the .rpmnew config to the current
config (i.e. merging in your customisations to the new file, such that
new comments and directives are present).

This has the effect of subsequently deleting the .rpmnew file (although
creating the kdmrc.ccpbackup file).

Thus it's doing everything correctly, even if the use of ccp can result
in the rpmnew warnings being misleading.

I suspect the .rpmsave is a relic from previous package updates a while
back.

Col



-- 

Colin Guthrie
colin(at)mageia.org
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the Mageia-dev mailing list