From: Elan Ruusamäe Date: Fri, 19 Aug 2005 09:47:37 +0000 (+0000) Subject: - nuke cache on final preun X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdrupal-themeengine-smarty.git;a=commitdiff_plain;h=12bb0088d0f2490f6a8953b13e58c4587544a8e6 - nuke cache on final preun Changed files: drupal-themeengine-smarty.spec -> 1.2 --- diff --git a/drupal-themeengine-smarty.spec b/drupal-themeengine-smarty.spec index 193417e..6a6c2b9 100644 --- a/drupal-themeengine-smarty.spec +++ b/drupal-themeengine-smarty.spec @@ -2,7 +2,7 @@ Summary: Drupal Smarty theme engine Name: drupal-themeengine-%{modname} Version: 4.6.0 -Release: 0.3 +Release: 0.9 Epoch: 0 License: GPL v2 Group: Applications/WWW @@ -41,6 +41,12 @@ install plugins/*.php $RPM_BUILD_ROOT%{_enginedir}/%{modname}/plugins %clean rm -rf $RPM_BUILD_ROOT +%preun +if [ "$1" = "0" ]; then + # nuke cache + rm -f %{_cachedir}/%{modname}/*.php +fi + %files %defattr(644,root,root,755) %doc *.txt