From d0e8342d4a9af3210d60fa77fed646a9aee396c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Wed, 26 Feb 2020 17:13:25 +0100 Subject: [PATCH] fix %postun scriptlet --- man-db.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/man-db.spec b/man-db.spec index 22b2114..8e3a6cc 100644 --- a/man-db.spec +++ b/man-db.spec @@ -4,7 +4,7 @@ Summary: Tools for searching and reading man pages Name: man-db Version: 2.9.1 -Release: 2%{?dist} +Release: 3%{?dist} # GPLv2+ .. man-db # GPLv3+ .. gnulib License: GPLv2+ and GPLv3+ @@ -144,7 +144,7 @@ fi %postun if [ $1 -ge 1 ]; then - if [ "$(+readlink %{_sysconfdir}/alternatives/man+)" == "%{_bindir}/man.%{name}" ]; then + if [ "$(readlink %{_sysconfdir}/alternatives/man)" == "%{_bindir}/man.%{name}" ]; then %{_sbindir}/update-alternatives --set man %{_bindir}/man.%{name} >/dev/null 2>&1 || : fi fi @@ -225,6 +225,9 @@ fi %config(noreplace) %{_sysconfdir}/cron.daily/man-db.cron %changelog +* Wed Feb 26 2020 Nikola Forró - 2.9.1-3 +- fix %postun scriptlet + * Wed Feb 26 2020 Nikola Forró - 2.9.1-2 - use alternatives for man, apropos and whatis