diff --git a/texinfo.spec b/texinfo.spec index 5f753f6..89bd419 100644 --- a/texinfo.spec +++ b/texinfo.spec @@ -98,7 +98,8 @@ export ALL_TESTS=yes %{_bindir}/texconfig-sys rehash 2> /dev/null || : %transfiletriggerin -n info -- %{_infodir} -%{_sbindir}/fix-info-dir --create %{_infodir}/dir +[ -f %{_infodir}/dir ] && create_arg="" || create_arg="--create" +%{_sbindir}/fix-info-dir $create_arg %{_infodir}/dir %transfiletriggerpostun -n info -- %{_infodir} [ -f %{_infodir}/dir ] && %{_sbindir}/fix-info-dir --delete %{_infodir}/dir || :