Bug 144218 - rpm doesn't create .rpmnew for config files
Summary: rpm doesn't create .rpmnew for config files
Status: RESOLVED INVALID
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 1
Hardware: i586 SUSE Other
: P5 - None : Critical (vote)
Target Milestone: ---
Assignee: Michael Schröder
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-19 21:39 UTC by Lars Müller
Modified: 2006-01-20 19:09 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.