packages: tzdata/tzdata.spec - print note that /etc/localtime is preserved ...

glen glen at pld-linux.org
Tue Mar 20 20:15:08 CET 2012


Author: glen                         Date: Tue Mar 20 19:15:08 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- print note that /etc/localtime is preserved if you uninstall the package

---- Files affected:
packages/tzdata:
   tzdata.spec (1.116 -> 1.117) 

---- Diffs:

================================================================
Index: packages/tzdata/tzdata.spec
diff -u packages/tzdata/tzdata.spec:1.116 packages/tzdata/tzdata.spec:1.117
--- packages/tzdata/tzdata.spec:1.116	Fri Mar 16 12:14:12 2012
+++ packages/tzdata/tzdata.spec	Tue Mar 20 20:15:03 2012
@@ -208,13 +208,14 @@
 	/sbin/chkconfig --del timezone
 
 	# save for postun
-	cp -f /etc/localtime /etc/localtime.rpmsave
+	cp -af /etc/localtime /etc/localtime.rpmsave
 fi
 %systemd_preun timezone.service
 
 %postun
 if [ "$1" = "0" ]; then
 	if [ ! -f /etc/localtime -a -f /etc/localtime.rpmsave ]; then
+		echo >&2 "Preserving /etc/localtime"
 		mv -f /etc/localtime{.rpmsave,}
 	fi
 fi
@@ -276,6 +277,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.117  2012/03/20 19:15:03  glen
+- print note that /etc/localtime is preserved if you uninstall the package
+
 Revision 1.116  2012/03/16 11:14:12  baggins
 - rel 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org//packages/tzdata/tzdata.spec?r1=1.116&r2=1.117&f=u



More information about the pld-cvs-commit mailing list