diff --git a/libreoffice.changes b/libreoffice.changes index 7d3dcdc..40e70a6 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Feb 1 12:05:00 UTC 2014 - tchvatal@suse.com + +- Add condition around uno cache removal so it is properly wiped + when needed. + ------------------------------------------------------------------- Sat Feb 1 11:34:26 UTC 2014 - tchvatal@suse.com diff --git a/libreoffice.spec b/libreoffice.spec index fcd8957..1572972 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1127,7 +1127,10 @@ test -d "$bundled_cache" && rm -rf "$bundled_cache"/* || true; %icon_theme_cache_post %preun -test "$1" = "0" && rm -rf ./%{_libdir}/%{name}/share/uno_packages/cache || true +uno_cache="%{_libdir}/%{name}/share/uno_packages/cache" +if [ "$1" = "0" ] ; then + test -d "$uno_cache" && rm -rf "$uno_cache"/* || true; +fi %postun /sbin/ldconfig