Bugzilla – Bug 118403
RPM rollback silently fails to store backup data if directory is not existing
Last modified: 2011-05-04 15:01:45 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
Yes, that's rpm, lots of subtle bugs and inconsistencies. ;-) I changed the severity to "enhancement".
In the meantime - the rollback directory was added to the rpm package - the rollback code has been removed from rpm by upstream