- Add condition around uno cache removal so it is properly wiped

when needed.

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=106
This commit is contained in:
Tomáš Chvátal 2014-02-01 12:05:43 +00:00 committed by Git OBS Bridge
parent ae0fa373fc
commit 0e0428b9e7
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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