From f19a29e555713669b048988d90388765af4e4d7b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 4 Feb 2018 13:52:19 +0100 Subject: [PATCH] don't recreate cache from scratch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 30 seconds → 2 seconds. Signed-off-by: Igor Gnatenko --- texinfo.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 || :