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 d9edfec5fdffd553648486d16d0fb8fbeafc9863..f3e24ee6c766eb4cd502c0efa47e050b1a52d849 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: