Red Hat Bugzilla – Bug 175710
cupsd not reloaded after uninstall of gimp-print-cups
Last modified: 2007-11-30 17:07:22 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Description of problem:
cupsd is not reloaded after uninstalling gimp-print-cups. Therefore /etc/cups/ppds.dat is not rebuilt and will contain stale entries. This will lead to errors when trying to add a printer that uses a PPD from gimp-print-cups.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install gimp-print-cups
2. Use CUPS web interface to add printer; gimp-print PPD's are listed (as expected)
3. Uninstall gimp-print-cups
4. Use CUPS web interface to add printer; gimp-print PPD's are still listed (not as expected)
Rebuilding ppds.dat by reloading cupsd should occur in the following cases:
1. First install of gimp-print-cups
2. Upgrade of gimp-print-cups
3. (Final) uninstall of gimp-print-cups
Looking at the spec file for gimp-print, the following cases are covered:
(1) is covered by %post
(2) is covered by %postun
(3) is not covered
%postun has the conditional "if [ "$1" -ge "1" ]". I believe this bug can be fixed by removing that conditional (or changing it to "if [ "$1" -ge "0" ]", but that's a bit silly).
I'm setting severity for this bug to low because an easy workaround is present: manually reload cupsd after uninstalling gimp-print-cups.
Thanks for the report. Yes, there is no need for the conditional in the %postun.
I have fixed in the devel branch (for Fedora Core / rawhide).
Since this issue has an easy work-around there will not be an update package for it.