don't recreate cache from scratch

30 seconds → 2 seconds.

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

View File

@ -98,7 +98,8 @@ export ALL_TESTS=yes
%{_bindir}/texconfig-sys rehash 2> /dev/null || : %{_bindir}/texconfig-sys rehash 2> /dev/null || :
%transfiletriggerin -n info -- %{_infodir} %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} %transfiletriggerpostun -n info -- %{_infodir}
[ -f %{_infodir}/dir ] && %{_sbindir}/fix-info-dir --delete %{_infodir}/dir || : [ -f %{_infodir}/dir ] && %{_sbindir}/fix-info-dir --delete %{_infodir}/dir || :