В Wed, 27 May 2015 22:27:54 +0300
"Dmitriy Perlow"
Andrei Borzenkov
Wed, 27 May 2015 19:42:38 +0300: В Wed, 27 May 2015 17:54:46 +0300 "Dmitriy Perlow"
пишет: Wtf? Don't do that. If the files in /usr/share/%name are owned by rpms they will be removed if all owners are uninstalled.
But not when updated.
That's a core job of rpm. There is no need for such ugly scripts.
When package is updated rpm just will (install new one) (not (remove old one and install new one))!
Sorry, this is nonsense. RPM removes all files that were listed as part of old version and are no more present in new version. The only reason it may not do it is if files are marked specially, like %config.
Looking at your RPM, /usr/share/%name is part of %name-data RPM, not of %name.
Yes.
Are you sure you updated both at the same time?
Of course: see the strict dependency.
Also this makes your %pre script plain wrong - it is for %name RPM which does not even own directory you remove.
%name is always monster-rpg-2 and so it does just I would like to get.
If %name-data is installed before %name, %name will happily wipe out just installed files.
It isn't the only update I found bad rpm practice not to delete obsoleted files. But this update cause runtime issue because of rpm laziness.
I find it hard to believe in gremlins. If you have versions of your RPM before and after switch to zip (but without rm -rf) I'd be interested to look. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org