don't abort if /etc/localtime already exists (and enigma2 isn't run as root)
authorAndreas Oberritter <obi@opendreambox.org>
Wed, 26 Mar 2008 12:38:59 +0000 (12:38 +0000)
committerAndreas Oberritter <obi@opendreambox.org>
Wed, 26 Mar 2008 12:38:59 +0000 (12:38 +0000)
lib/python/Components/Timezones.py

index d9edfec..f3e24ee 100644 (file)
@@ -41,7 +41,10 @@ class Timezones:
                        unlink("/etc/localtime")
                except OSError:
                        pass
-               symlink("/usr/share/zoneinfo/%s" %(self.timezones[index][1]), "/etc/localtime")
+               try:
+                       symlink("/usr/share/zoneinfo/%s" %(self.timezones[index][1]), "/etc/localtime")
+               except OSError:
+                       pass
                try:
                        time.tzset()
                except: