fix off-by-one error on the progress and fix vars in ToolExistsPrecondition
[enigma2.git] / 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: