SPECS: drupal-themeengine-smarty.spec - nuke cache on final preun

glen glen at pld-linux.org
Fri Aug 19 11:47:42 CEST 2005


Author: glen                         Date: Fri Aug 19 09:47:42 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- nuke cache on final preun

---- Files affected:
SPECS:
   drupal-themeengine-smarty.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/drupal-themeengine-smarty.spec
diff -u SPECS/drupal-themeengine-smarty.spec:1.1 SPECS/drupal-themeengine-smarty.spec:1.2
--- SPECS/drupal-themeengine-smarty.spec:1.1	Fri Aug 19 11:06:59 2005
+++ SPECS/drupal-themeengine-smarty.spec	Fri Aug 19 11:47:37 2005
@@ -3,7 +3,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
@@ -42,6 +42,12 @@
 %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
@@ -54,6 +60,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2005/08/19 09:47:37  glen
+- nuke cache on final preun
+
 Revision 1.1  2005/08/19 09:06:59  glen
 - new
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/drupal-themeengine-smarty.spec?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list