preun missing condition on number of man-db packages installed

- related: #1151558
This commit is contained in:
Jan Chaloupka 2014-10-13 14:15:43 +02:00
parent f4871e2403
commit 09ab1a7e0f

View File

@ -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 <jchaloup@redhat.com> - 2.7.0.2-4
- preun missing condition on number of man-db packages installed
related: #1151558
* Sun Oct 12 2014 jchaloup <jchaloup@redhat.com> - 2.7.0.2-3
- remove executable flag for *.service and *.timer file
resolves: #1151558