Bug 118403

Summary: RPM rollback silently fails to store backup data if directory is not existing
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Friedmund Lassmann <friedl>
Component: BasesystemAssignee: Michael Schröder <mls>
Status: VERIFIED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None CC: andreas.hanke
Version: RC 1   
Target Milestone: ---   
Hardware: PC   
OS: SUSE Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Friedmund Lassmann 2005-09-22 14:37:59 UTC
We've checked that the RPM rollback functionality works with RPM 4.1.1 
(even if http://www.linuxjournal.com/article/7034 suggests RPM >= 4.2)
but there is a little caveat: rpm does not save the old version in the
backup directory if that directory has not been created manually.
If you now run 'rpm --rollback' then the command returns after some time
but did not do anything.

I would expect some error or warning instead!

This is what we did:

erle:/tmp # more /etc/rpm/macros
%_repackage_all_erasures 1
%_unsafe_rollbacks 1059710400
%_repackage_dir /var/spool/repackage

erle:~ # rpm -q mysql
mysql-4.0.21-4.2
erle:~ # you
erle:~ # rpm -q mysql
mysql-4.0.21-4.6
erle:~ # rpm -Uvh --rollback '17:20'
erle:~ # rpm -q mysql
mysql-4.0.21-4.6
Comment 1 Michael Schröder 2005-09-22 15:01:18 UTC
Yes, that's rpm, lots of subtle bugs and inconsistencies. ;-) 
I changed the severity to "enhancement". 
Comment 2 Michael Schröder 2011-05-04 15:01:45 UTC
In the meantime
- the rollback directory was added to the rpm package
- the rollback code has been removed from rpm by upstream