Description of problem: I'm getting %preun failure in spacewalk-java package when I try to uninstall it from previously not completed installation. Version-Release number of selected component (if applicable): spacewalk-java-0.4.10-2.el5 spacewalk-java-lib-0.4.10-2.el5.noarch spacewalk-taskomatic-0.4.10-2.el5.noarch How reproducible: always (?) Steps to Reproduce: 1. # rpm -e spacewalk-java spacewalk-java-lib spacewalk-taskomatic Actual results: error reading information on service taskomatic: No such file or directory error: %preun(spacewalk-java-0.4.10-2.el5.noarch) scriptlet failed, exit status 1 # rpm -q spacewalk-java spacewalk-java-lib spacewalk-taskomatic spacewalk-java-0.4.10-2.el5 # <<< still installed! package spacewalk-java-lib is not installed package spacewalk-taskomatic is not installed Expected results: no errors # rpm -q spacewalk-java spacewalk-java-lib spacewalk-taskomatic package spacewalk-java is not installed package spacewalk-java-lib is not installed package spacewalk-taskomatic is not installed Additional info: # rpm -q --scripts spacewalk-java preuninstall scriptlet (using /bin/sh): if [ $1 = 0 ] ; then /sbin/service taskomatic stop >/dev/null 2>&1 /sbin/chkconfig --del taskomatic fi Maybe just adding `exit 0` to the end could do it - anyway, shouldn't `chkconfig --del taskomatic` be performed by spacewalk-taskomatic package?
Fixed in c42a3a8. Moved the scriptlet to be specific to the taskomatic subpackage, the post above it looks like it really should not be on the java package.
VERIFIED as I have not seen this on the 20090521.1 (RHEL5, x86_64).
Release Pending. Looks clean removing all three, all three disappear, and able to install fresh copies.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2009-1434.html