Fix upgrade from previous mercurial 4.9 causing broken alternatives for mercurial
Resolves: #1831562
This commit is contained in:
parent
9b92ee7eed
commit
135c656f11
@ -1,7 +1,7 @@
|
||||
Summary: Mercurial -- a distributed SCM
|
||||
Name: mercurial
|
||||
Version: 5.2
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
|
||||
# Release: 1.rc1%%{?dist}
|
||||
|
||||
@ -240,6 +240,11 @@ touch $RPM_BUILD_ROOT%{_bindir}/hg
|
||||
touch $RPM_BUILD_ROOT%{_bindir}/hg-ssh
|
||||
|
||||
%post py2
|
||||
for fname in %{_bindir}/{hg,hg-ssh}; do
|
||||
if [ ! -L "$fname" ]; then
|
||||
rm -f "$fname"
|
||||
fi
|
||||
done
|
||||
%{_sbindir}/update-alternatives --install %{_bindir}/hg \
|
||||
hg %{_bindir}/hg2 %{py2_priority} \
|
||||
--slave %{_bindir}/hg-ssh hg-ssh %{_bindir}/hg-ssh2 || :
|
||||
@ -251,6 +256,11 @@ if [ $1 -eq 0 ]; then
|
||||
fi
|
||||
|
||||
%post py3
|
||||
for fname in %{_bindir}/{hg,hg-ssh}; do
|
||||
if [ ! -L "$fname" ]; then
|
||||
rm -f "$fname"
|
||||
fi
|
||||
done
|
||||
%{_sbindir}/update-alternatives --install %{_bindir}/hg \
|
||||
hg %{_bindir}/hg3 %{py3_priority} \
|
||||
--slave %{_bindir}/hg-ssh hg-ssh %{_bindir}/hg-ssh3 || :
|
||||
@ -323,6 +333,11 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 10 2020 Petr Stodulka <pstodulk@redhat.com> - 5.2-5
|
||||
- Fix upgrade from previous mercurial 4.9 causing broken alternatives for
|
||||
mercurial
|
||||
- Resolves: #1831562
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user