Bug 144218

Summary: rpm doesn't create .rpmnew for config files
Product: [openSUSE] SUSE Linux 10.1 Reporter: Lars Müller <lmuelle>
Component: BasesystemAssignee: Michael Schröder <mls>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None    
Version: Beta 1   
Target Milestone: ---   
Hardware: i586   
OS: SUSE Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lars Müller 2006-01-19 21:39:02 UTC
rpm no longer creates .rpmnew files for changes config files.

gab:/srv/ftp/pub/samba # rpm -V samba-client
S.5....T  c /etc/samba/smb.conf
gab:/srv/ftp/pub/samba # ls -l /etc/samba/smb.conf*
-rw-r--r-- 1 root root 2531 2006-01-17 23:50 /etc/samba/smb.conf
-rw-r--r-- 1 root root 1916 2005-03-11 18:39 /etc/samba/smb.conf.begin
-rw-r--r-- 1 root root 1192 2006-01-19 21:53 /etc/samba/smb.conf.rpmnew
gab:/srv/ftp/pub/samba # rm /etc/samba/smb.conf.rpmnew 
gab:/srv/ftp/pub/samba # rpm -Fvh samba-client-3.0.21a-4.9.i586.rpm 
warning: samba-client-3.0.21a-4.9.i586.rpm: Header V3 DSA signature: NOKEY, key ID 414a57c3
Preparing...                ########################################### [100%]
   1:samba-client           ########################################### [100%]
Updating etc/sysconfig/network/dhcp...
gab:/srv/ftp/pub/samba # rpm -q rpm
rpm-4.4.2-9
gab:/srv/ftp/pub/samba # ls -l /etc/samba/smb.conf*
-rw-r--r-- 1 root root 2531 2006-01-17 23:50 /etc/samba/smb.conf
-rw-r--r-- 1 root root 1916 2005-03-11 18:39 /etc/samba/smb.conf.begin
Comment 1 Michael Schröder 2006-01-20 11:53:44 UTC
Looks correct to me. What did you expect?
Comment 2 Lars Müller 2006-01-20 15:48:55 UTC
I expected:
   1:samba-client           warning: /etc/samba/smb.conf created as /etc/samba/smb.conf.rpmnew
########################################### [100%]

But today it works again.  So invalid is right.
Comment 3 Michael Schröder 2006-01-20 19:09:05 UTC
It'll only create it if the versions in the old and new rpms contain different files. If they are the same, the changed on-disk file is left intact.