Karl Eichwalder 2015-07-15 13:07:49 +00:00 committed by Git OBS Bridge
parent 9080e53382
commit 4b701cd467

View File

@ -91,7 +91,10 @@ xmlcatalog --noout --add "nextCatalog" "suse-catalog.xml" "suse-catalog.xml" \
rm -fr $RPM_BUILD_ROOT
%post
xmlcatalog --noout --create %{_sysconfdir}/xml/suse-catalog.xml
# 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
fi
%files
%defattr(-, root, root)