From 90b0afb694671b17ba72dbc0e5c37fc881e12f56 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Jun 13 2006 16:23:51 +0000 Subject: - Remove certs directory in %post, not %postun. --- diff --git a/cups.spec b/cups.spec index edfd526..15e2014 100644 --- a/cups.spec +++ b/cups.spec @@ -5,7 +5,7 @@ Summary: Common Unix Printing System Name: cups Version: 1.2.1 -Release: 10 +Release: 11 License: GPL Group: System Environment/Daemons Source: ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2 @@ -245,6 +245,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/icons %post /sbin/chkconfig --del cupsd 2>/dev/null || true # Make sure old versions aren't there anymore /sbin/chkconfig --add cups || true +# Remove old-style certs directory; new-style is /var/run +# (see bug #194581 for why this is necessary). +/bin/rm -rf /etc/cups/certs %if %use_alternatives /usr/sbin/alternatives --install %{_bindir}/lpr print %{_bindir}/lpr.cups 40 \ --slave %{_bindir}/lp print-lp %{_bindir}/lp.cups \ @@ -285,9 +288,6 @@ exit 0 %postun if [ "$1" -ge "1" ]; then /sbin/service cups condrestart > /dev/null 2>&1 - # Remove old-style certs directory; new-style is /var/run - # (see bug #194581 for why this is necessary). - rm -rf /etc/cups/certs fi exit 0 @@ -392,6 +392,9 @@ rm -rf $RPM_BUILD_ROOT %{cups_serverbin}/daemon/cups-lpd %changelog +* Tue Jun 13 2006 Tim Waugh 1:1.2.1-11 +- Remove certs directory in %%post, not %%postun. + * Tue Jun 13 2006 Tim Waugh 1:1.2.1-10 - Remove old-style certs directory after upgrade (bug #194581).