]> git.pld-linux.org Git - packages/anaconda.git/blob - anaconda-timezone.patch
- write pld-style /etc/sysconfig/timezone
[packages/anaconda.git] / anaconda-timezone.patch
1 --- anaconda-11.0.5/iw/timezone_gui.py~ 2006-02-16 17:09:07.000000000 +0200
2 +++ anaconda-11.0.5/iw/timezone_gui.py  2006-05-24 02:51:14.854100882 +0300
3 @@ -41,7 +41,7 @@
4          gtk.glade.set_custom_handler(self.custom_widget_handler)
5  
6          # Set the default now.  We'll fix it for real in getScreen.
7 -        self.default = "America/New_York"
8 +        self.default = "Europe/Tallinn"
9  
10          self.zonetab = zonetab.ZoneTab()
11  
12 @@ -98,7 +98,7 @@
13              asUTC = 0
14  
15          if (string.find(self.default, "UTC") != -1):
16 -            self.default = "America/New_York"
17 +            self.default = "Europe/Tallinn"
18  
19          # Now fix the default we set when we made the timezone map widget.
20          self.tz.setCurrent(self.zonetab.findEntryByTZ(self.default))
21 @@ -117,7 +117,7 @@
22      if curlat >= latmin and curlat <= latmax and curlong >= longmin and curlong <= longmax:
23          return True
24      elif user_data.currentEntry == None:
25 -        if model.get_value(iter, 1) == "America/New_York":
26 +        if model.get_value(iter, 1) == "Europe/Tallinn":
27              return True
28          else:
29              return False
30 @@ -144,7 +144,7 @@
31                                weight=pango.WEIGHT_BOLD)
32              self.markers[entry.tz] = marker
33  
34 -            if entry.tz == "America/New_York":
35 +            if entry.tz == "Europe/Tallinn":
36                  #In case the /etc/sysconfig/clock is messed up, use New York as default
37                  self.fallbackEntry = entry
38  
39 --- anaconda-11.0.5/timezone.py~        2005-08-12 20:02:54.000000000 +0300
40 +++ anaconda-11.0.5/timezone.py 2006-09-26 20:37:15.448072953 +0300
41 @@ -42,11 +42,31 @@
42             log.error("Error copying timezone (from %s): %s" % (fromFile, msg))
43  
44         f = open(instPath + "/etc/sysconfig/clock", "w")
45 -
46 -       f.write('ZONE="%s"\n' % self.tz)
47 +       f.write('# Should the hardware clock be kept in Coordinated Universal Time (instead of local time).')
48         f.write("UTC=%s\n" % bool(self.utc))
49 +       f.write('# true means  your  machine  uses epoch 1980 in its hardware clock')
50         f.write("ARC=%s\n" % bool(self.arc))
51 +       f.write('# true means your machine uses  epoch  1900 in its hardware clock')
52 +       f.write("SRM=false\n")
53 +       f.close()
54 +
55 +       # FIXME: solution for timezones like EET
56 +       (area, zone) = string.split(self.tz, "/")
57  
58 +       f = open(instPath + "/etc/sysconfig/timezone", "w")
59 +       f.write('# Time zone information.')
60 +       f.write('# Directory containing zone information files.')
61 +       f.write('ZONE_INFO_DIR="/usr/share/zoneinfo"')
62 +       f.write("\n");
63 +       f.write('# Scheme you would like to use in your system.')
64 +       f.write('ZONE_INFO_SCHEME="posix"')
65 +       f.write("\n")
66 +       f.write('# Area (sometimes may be empty)')
67 +       f.write('ZONE_INFO_AREA="%s"\n' % area)
68 +       f.write("\n")
69 +       f.write('# Name of the time zone for your system.')
70 +       f.write('TIME_ZONE="%s"\n' % zone)
71 +       f.write("\n");
72         f.close()
73  
74      def getTimezoneInfo(self):
This page took 0.036012 seconds and 4 git commands to generate.