В 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. Are you sure you updated both at the same time? Also this makes your %pre script plain wrong - it is for %name RPM which does not even own directory you remove. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org