From 09ab1a7e0f58ff309886c45454a325f351b4e138 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Mon, 13 Oct 2014 14:15:43 +0200 Subject: [PATCH] preun missing condition on number of man-db packages installed - related: #1151558 --- man-db.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/man-db.spec b/man-db.spec index 197123a..040ece6 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.7.0.2 -Release: 3%{?dist} +Release: 4%{?dist} # GPLv2+ .. man-db # GPLv3+ .. gnulib License: GPLv2+ and GPLv3+ @@ -81,8 +81,10 @@ systemctl start man-db.timer %preun # stop and disable timer -systemctl stop man-db.timer -systemctl -q disable man-db.timer +if [ "$1" -eq 0 ]; then + systemctl stop man-db.timer + systemctl -q disable man-db.timer +fi %files -f %{name}.lang -f %{name}-gnulib.lang %{!?_licensedir:%global license %%doc} @@ -131,6 +133,10 @@ systemctl -q disable man-db.timer %lang(zh_CN) %{_datadir}/man/zh_CN/man*/* %changelog +* Mon Oct 13 2014 jchaloup - 2.7.0.2-4 +- preun missing condition on number of man-db packages installed + related: #1151558 + * Sun Oct 12 2014 jchaloup - 2.7.0.2-3 - remove executable flag for *.service and *.timer file resolves: #1151558