SPECS: tzdata.spec - different approach to preserve /etc/localtime...
glen
glen at pld-linux.org
Tue Mar 4 21:00:33 CET 2008
Author: glen Date: Tue Mar 4 20:00:33 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- different approach to preserve /etc/localtime after uninstall
---- Files affected:
SPECS:
tzdata.spec (1.39 -> 1.40)
---- Diffs:
================================================================
Index: SPECS/tzdata.spec
diff -u SPECS/tzdata.spec:1.39 SPECS/tzdata.spec:1.40
--- SPECS/tzdata.spec:1.39 Tue Mar 4 20:40:26 2008
+++ SPECS/tzdata.spec Tue Mar 4 21:00:28 2008
@@ -114,6 +114,16 @@
%preun
if [ "$1" = "0" ]; then
/sbin/chkconfig --del timezone
+
+ # save for postun
+ cp -f /etc/localtime /etc/localtime.rpmsave
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+ if [ ! -f /etc/localtime -a -f /etc/localtime.rpmsave ]; then
+ mv -f /etc/localtime{.rpmsave,}
+ fi
fi
%triggerpostun -- rc-scripts < 0.4.1.4
@@ -139,6 +149,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.40 2008-03-04 20:00:28 glen
+- different approach to preserve /etc/localtime after uninstall
+
Revision 1.39 2008-03-04 19:40:26 arekm
- rel 7; revert /etc/localtime removal (rpm has deps on symlinks)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/tzdata.spec?r1=1.39&r2=1.40&f=u
More information about the pld-cvs-commit
mailing list