- Do not remove folders too early in the link-to-ooo-home

* this fixes warning about trying to remove dir

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=190
This commit is contained in:
Tomáš Chvátal 2014-09-19 11:12:26 +00:00 committed by Git OBS Bridge
parent 177b70b9a1
commit ee8bc8f5c2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 19 11:11:42 UTC 2014 - tchvatal@suse.com
- Do not remove folders too early in the link-to-ooo-home
* this fixes warning about trying to remove dir
-------------------------------------------------------------------
Fri Aug 29 13:29:59 UTC 2014 - tchvatal@suse.com

View File

@ -37,7 +37,7 @@ change_linking() {
# first just remove the symlinks
for file in `cat ${filelist} | grep "/usr/share/libreoffice" | sort`; do
linkfile=${file/${datadir}/${libdir}}
if [[ -L "${linkfile}" && ! -r "${linkfile}" ]]; then
if [[ -L "${linkfile}" && ! -r "${linkfile}" && ! -d "${linkfile}" ]]; then
rm -f "${linkfile}" || exit 1
fi
done