fix post scriptlet to not remove files on upgrade

This commit is contained in:
Miroslav Lichvar 2013-07-16 18:18:39 +02:00
parent 4187a1aa2e
commit 1c1745664f
1 changed files with 12 additions and 2 deletions

View File

@ -106,8 +106,18 @@ if [ "$1" = 0 ]; then
%{_infodir}/dir &> /dev/null
done
fi
rm -f %{_bindir}/guile
rm -f %{_bindir}/guile-tools
:
%triggerin -- guile < 5:2.0.9-3
# Allow safe upgrade from older versions
ln -f %{_bindir}/guile{,.save}
ln -f %{_bindir}/guile-tools{,.save}
:
%posttrans
# Move saved files back
[ -e %{_bindir}/guile.save ] && mv -f %{_bindir}/guile{.save,}
[ -e %{_bindir}/guile-tools.save ] && mv -f %{_bindir}/guile-tools{.save,}
:
%triggerin -- slib