install-info should exit gracefully when --nodocs

This commit is contained in:
Warren Togami 2008-03-06 22:41:08 +00:00
parent 92062b0957
commit 4308229842

View File

@ -39,11 +39,13 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
%post
/sbin/install-info --quiet --info-dir=%{_infodir} %{_infodir}/which.info.gz
exit 0
%preun
if [ $1 = 0 ]; then
/sbin/install-info --quiet --info-dir=%{_infodir} --delete %{_infodir}/which.info.gz
fi
exit 0
%clean
rm -rf $RPM_BUILD_ROOT
@ -57,6 +59,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/*/*
%changelog
* Thu Mar 06 2008 Warren Togami <wtogami@redhat.com> 2.19-3
- install-info should exit gracefully when --nodocs
* Fri Feb 15 2008 Than Ngo <than@redhat.com> 2.19-2
- rebuilt