Karl Eichwalder 2015-07-15 13:12:29 +00:00 committed by Git OBS Bridge
parent 5a17d00f50
commit 2eadf76046

View File

@ -92,8 +92,9 @@ rm -fr $RPM_BUILD_ROOT
%post
# only create suse-catalog.xml at installation time; not in the update case
if ["$1" = 1 ]; then
[ -r %{_sysconfdir}/xml/suse-catalog.xml ] || xmlcatalog --noout --create %{_sysconfdir}/xml/suse-catalog.xml
if [ "$1" = 1 ]; then
[ -r %{_sysconfdir}/xml/suse-catalog.xml ] \
|| xmlcatalog --noout --create %{_sysconfdir}/xml/suse-catalog.xml
fi
%files