]> git.pld-linux.org Git - packages/tzdata.git/commitdiff
- added trigger to make older cofing compatible with the new one
authorMarcin Banasiak <marcin.banasiak@gmail.com>
Thu, 24 Apr 2008 17:34:41 +0000 (17:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- release 4

Changed files:
    tzdata.spec -> 1.47

tzdata.spec

index 3a92d02fd3cc425986860d98ff03c89016e807cf..0729ad42d04aec048ced7038e4193bdb5b572524 100644 (file)
@@ -8,7 +8,7 @@ Summary:        Timezone data
 Summary(pl.UTF-8):     Dane o strefach czasowych
 Name:          tzdata
 Version:       %{tzdata_ver}
-Release:       3.1
+Release:       4
 License:       Public Domain (database), BSD/LGPL v2.1+ (code/test suite)
 Group:         Base
 Source0:       %{name}-base-0.tar.bz2
@@ -128,6 +128,21 @@ fi
 %triggerpostun -- rc-scripts < 0.4.1.4
 /sbin/chkconfig --add timezone
 
+%triggerpostun -- tzdata < 2008b-4
+if ! grep -q '^TIMEZONE=' /etc/sysconfig/timezone; then
+       . /etc/sysconfig/timezone
+
+       if [ -z $ZONE_INFO_AREA ]; then
+               TIMEZONE=$TIME_ZONE
+       else
+               TIMEZONE=$ZONE_INFO_AREA/$TIME_ZONE
+       fi
+
+       echo "TIMEZONE=\"$TIMEZONE\"" >> /etc/sysconfig/timezone
+
+       %service timezone restart
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc tzcode/README tzcode/Theory tzcode/tz-link.html
This page took 0.030892 seconds and 4 git commands to generate.