Description of problem: gawk does not install with --excludedocs Version-Release number of selected component (if applicable): gawk-3.1.1-9.i386.rpm and gawk-3.1.1-4.i386.rpm Steps to Reproduce: 1. rpm -i --excludedocs gawk-3.1.1-9.i386.rpm Actual results: install-info: No such file or directory for /usr/info/gawk.info.gz error: execution of %post scriptlet from gawk-3.1.1-9 failed, exit status 1 Expected results: Installs correctly with no errors.
Here's a patch: --- SPECS/gawk.spec.orig 2003-06-04 16:19:47.000000000 +1000 +++ SPECS/gawk.spec 2003-06-04 16:21:41.000000000 +1000 @@ -52,7 +52,8 @@ rm -rf $RPM_BUILD_ROOT %post -/sbin/install-info %{_infodir}/gawk.info.gz %{_infodir}/dir +[ -f %{_infodir}/gawk.info.gz ] && \ + /sbin/install-info %{_infodir}/gawk.info.gz %{_infodir}/dir || : %preun if [ $1 = 0 ]; then
Fixed in our internal cvs tree, but I will not immediately build a new rpm with this. thanks for the bug-report, Florian La Roche