- Fix bsc#953511 by removing leftover dirs

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice-share-linker?expand=0&rev=8
This commit is contained in:
Tomáš Chvátal
2017-05-16 14:13:01 +00:00
committed by Git OBS Bridge
parent 2fa3e84792
commit 34c0d4eced
2 changed files with 16 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 16 14:03:27 UTC 2017 - tchvatal@suse.com
- Fix bsc#953511 by removing leftover dirs
-------------------------------------------------------------------
Fri Apr 21 11:19:42 UTC 2017 - tchvatal@suse.com

View File

@@ -53,6 +53,17 @@ change_linking() {
fi
fi
done
leftover_dirs="
/usr/share/libreoffice/help
/usr/share/libreoffice/program
/usr/share/libreoffice/share
/usr/share/libreoffice
"
for i in ${leftover_dirs}; do
if [[ -d ${i} && ! "$(ls -A ${i})" ]]; then
rmdir "${i}" || exit 1
fi
done
fi
}