Accepting request 834510 from Base:System

OBS-URL: https://build.opensuse.org/request/show/834510
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/man?expand=0&rev=84
This commit is contained in:
Dominique Leuenberger 2020-09-18 13:20:53 +00:00 committed by Git OBS Bridge
commit b5acb70184
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 11 19:34:46 UTC 2020 - Antoine Belvire <antoine.belvire@opensuse.org>
- Add migration code to handle upgrade from old version of the man
package not supporting alternative path move (boo#1175919).
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Aug 30 17:39:08 UTC 2020 - Antoine Belvire <antoine.belvire@opensuse.org> Sun Aug 30 17:39:08 UTC 2020 - Antoine Belvire <antoine.belvire@opensuse.org>

View File

@ -295,6 +295,15 @@ test -d var/catman/ && rm -rf var/catman/ || true
--slave %{_mandir}/man1/apropos.1%{?ext_man} apropos.1%{?ext_man} %{_mandir}/man1/apropos-db.1%{?ext_man} \ --slave %{_mandir}/man1/apropos.1%{?ext_man} apropos.1%{?ext_man} %{_mandir}/man1/apropos-db.1%{?ext_man} \
--slave %{_mandir}/man1/whatis.1%{?ext_man} whatis.1%{?ext_man} %{_mandir}/man1/whatis-db.1%{?ext_man} --slave %{_mandir}/man1/whatis.1%{?ext_man} whatis.1%{?ext_man} %{_mandir}/man1/whatis-db.1%{?ext_man}
# Old man packages did not apply the proper update-alternatives calls to ensure
# alternative path move. As a result, the alternative path move induced by
# libexecdir move breaks man wrapper (boo#1175919). Hence the following migration
# code for upgrades from Leap 15.2 or Tumbleweed snapshots older than 20200826.
# To be removed when support for upgrades from Leap 15.2 is dropped (dec. 2021).
if [ %{_libexecdir} != %{_prefix}/lib ] && [ -f %{_prefix}/lib/man-db/wrapper ] ; then
update-alternatives --quiet --remove man %{_prefix}/lib/man-db/wrapper
fi
%preun %preun
%if %{with sdtimer} %if %{with sdtimer}
%service_del_preun man-db-create.service %service_del_preun man-db-create.service