Don't print errors in post and preun sections (#515942)

This commit is contained in:
Roman Rakus 2009-08-11 15:00:42 +00:00
parent 9729fc46c8
commit d108469875

View File

@ -1,7 +1,7 @@
Summary: A perfect hash function generator
Name: gperf
Version: 3.0.3
Release: 8%{?dist}
Release: 9%{?dist}
License: GPLv2+
Source: ftp://ftp.gnu.org/pub/gnu/gperf/gperf-%{version}.tar.gz
Group: Development/Tools
@ -36,12 +36,12 @@ rm -rf $RPM_BUILD_ROOT{%{_mandir}/{dvi,html},%{_datadir}/doc}
rm -rf $RPM_BUILD_ROOT
%post
/sbin/install-info %{_infodir}/gperf.info.gz %{_infodir}/dir
/sbin/install-info %{_infodir}/gperf.info.gz %{_infodir}/dir >/dev/null 2>&1 || :
exit 0
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/gperf.info.gz %{_infodir}/dir || :
/sbin/install-info --delete %{_infodir}/gperf.info.gz %{_infodir}/dir >/dev/null 2>&1|| :
fi
exit 0
@ -53,6 +53,9 @@ exit 0
%{_infodir}/gperf.info*
%changelog
* Tue Aug 11 2009 Roman Rakus <rrakus@redhat.com> - 3.0.3-9
- Don't print errors in post and preun sections (#515942)
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild