From c5511ca5b2a1fffc58d766fdfecdaea392724806 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Jan 10 2006 13:27:54 +0000 Subject: - Don't remove the cache directory, only its contents (bug #177266). --- diff --git a/foomatic.spec b/foomatic.spec index ea3633d..27a3a6c 100644 --- a/foomatic.spec +++ b/foomatic.spec @@ -228,9 +228,7 @@ rm -rf $RPM_BUILD_ROOT%{_libdir}/perl5/site_perl \ find $RPM_BUILD_ROOT -name .packlist -o -name '*.xml.*' | xargs rm -f %post -if [ -d /var/cache/foomatic ] ; then - /bin/rm -rf /var/cache/foomatic -fi +/bin/rm -f /var/cache/foomatic/* # Try to rebuild the printconf data if [ -x /usr/share/printconf/util/updateconf.py ] ; then @@ -265,6 +263,9 @@ rm -fr %buildroot $RPM_BUILD_DIR/%{name} %{_var}/cache/foomatic %changelog +* Tue Jan 10 2006 Tim Waugh +- Don't remove the cache directory, only its contents (bug #177266). + * Tue Jan 3 2006 Tim Waugh 3.0.2-30 - Updated db to 3.0-20060103.