fix upgrades from non-alternativized versions

This commit is contained in:
Nikola Forró 2020-02-28 17:22:30 +01:00
parent d0e8342d4a
commit ac2b993995

View File

@ -4,7 +4,7 @@
Summary: Tools for searching and reading man pages
Name: man-db
Version: 2.9.1
Release: 3%{?dist}
Release: 4%{?dist}
# GPLv2+ .. man-db
# GPLv3+ .. gnulib
License: GPLv2+ and GPLv3+
@ -116,6 +116,9 @@ install -D -p -m 0644 %{SOURCE4} $RPM_BUILD_ROOT%{_unitdir}/man-db-restart-cache
%find_lang %{name}-gnulib
%pre
# /usr/bin/man is now alternativized, so if it is not a symlink, remove it
[ -L %{_bindir}/man ] || rm -f %{_bindir}/man
# stop and disable timer from previous builds
if [ -e /usr/lib/systemd/system/mandb.timer ]; then
if test -d /run/systemd; then
@ -225,6 +228,9 @@ fi
%config(noreplace) %{_sysconfdir}/cron.daily/man-db.cron
%changelog
* Fri Feb 28 2020 Nikola Forró <nforro@redhat.com> - 2.9.1-4
- fix upgrades from non-alternativized versions
* Wed Feb 26 2020 Nikola Forró <nforro@redhat.com> - 2.9.1-3
- fix %postun scriptlet