don't run fix-info-dir on uninstall if there is no dir

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2018-02-04 13:38:33 +01:00
parent 1a43cb5934
commit dde642cbcb
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -101,7 +101,7 @@ export ALL_TESTS=yes
%{_sbindir}/fix-info-dir --create %{_infodir}/dir
%transfiletriggerpostun -n info -- %{_infodir}
%{_sbindir}/fix-info-dir --delete %{_infodir}/dir
[ -f %{_infodir}/dir ] && %{_sbindir}/fix-info-dir --delete %{_infodir}/dir || :
%files -f %{name}.lang -f %{name}_document.lang
%doc AUTHORS ChangeLog NEWS README TODO