Red Hat Bugzilla – Bug 586513
pure-ftpd-selinux %preun invokes pure-ftpd
Last modified: 2010-06-03 11:01:44 EDT
Description of problem:
I installed pure-ftpd and pure-ftpd-selinux on my desktop machine temporarily in order to diagnose an FTP-related problem we were having in our internal company network. When I tried to uninstall, I got this:
# rpm -e pure-ftpd pure-ftpd-selinux
warning: /etc/pure-ftpd/pure-ftpd.conf saved as /etc/pure-ftpd/pure-ftpd.conf.rpmsave
pure-ftpd not found
error: %preun(pure-ftpd-selinux-1.0.29-1.fc12.x86_64) scriptlet failed, exit status 1
and now pure-ftpd is uninstalled, but pure-ftpd-selinux is not. In the spec file, I see this:
if [ "$1" -lt "1" ]; then # Final removal
semodule -r pureftpd 2>/dev/null || :
fixfiles -R pure-ftpd restore
/sbin/service pure-ftpd condrestart > /dev/null 2>&1
The "service" line fails if the main package has already been uninstalled. This line should either be allowed to fail, or else the dependency of that script on the main package should be made explicit.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum install pure-ftpd pure-ftpd-selinux
2. rpm -e pure-ftpd pure-ftpd-selinux
The uninstallation fails while processing the %preun script of pure-ftpd-selinux.
Thanks for reporting this ! I've fixed the bug in CVS, the update is building right now.
pure-ftpd-1.0.29-2.fc12 has been submitted as an update for Fedora 12.
pure-ftpd-1.0.29-2.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
pure-ftpd-1.0.29-1.el5.1 has been submitted as an update for Fedora EPEL 5.
pure-ftpd-1.0.29-1.el5.1 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.