Andrei Borzenkov
В 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. 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. -- Best regards, Dmitriy DA(P).DarkneSS Perlow @ Linux x64 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org