fix %pre scriptlet

This commit is contained in:
Nikola Forró 2020-03-01 23:20:27 +01:00
parent fe6fc82d35
commit c6e51d06eb

View File

@ -7,7 +7,7 @@
Summary: Linux kernel and C library user-space interface documentation
Name: man-pages
Version: 5.04
Release: 5%{?dist}
Release: 6%{?dist}
License: GPL+ and GPLv2+ and BSD and MIT and Copyright only and IEEE
URL: http://www.kernel.org/doc/man-pages/
Source: http://www.kernel.org/pub/linux/docs/man-pages/man-pages-%{version}.tar.xz
@ -92,7 +92,7 @@ touch %{buildroot}%{_mandir}/man7/man.7
%pre
# remove alternativized files if they are not symlinks
[ -L %{_mandir}/man7/man.7.gz ] || rm -f %{_mandir}/man7/man.7.gz
[ -L %{_mandir}/man7/man.7.gz ] || %{__rm} -f %{_mandir}/man7/man.7.gz >/dev/null 2>&1 || :
%post
# set up the alternatives files
@ -118,6 +118,9 @@ fi
%{_mandir}/man*/*
%changelog
* Sun Mar 01 2020 Nikola Forró <nforro@redhat.com> - 5.04-6
- fix %pre scriptlet
* Fri Feb 28 2020 Nikola Forró <nforro@redhat.com> - 5.04-5
- fix upgrades from non-alternativized versions