aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2008-03-26 12:38:59 +0000
committerAndreas Oberritter <obi@opendreambox.org>2008-03-26 12:38:59 +0000
commit601ea61bbe6efa01e213d4507013a3750f1243d2 (patch)
tree19eb8a11109b26538d61d0cea5a6eaeff92e845c /lib/python/Components
parent5bd64b0b0c3e07df7f316c9fe403c19c421057fc (diff)
downloadenigma2-601ea61bbe6efa01e213d4507013a3750f1243d2.tar.gz
enigma2-601ea61bbe6efa01e213d4507013a3750f1243d2.zip
don't abort if /etc/localtime already exists (and enigma2 isn't run as root)
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/Timezones.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Components/Timezones.py b/lib/python/Components/Timezones.py
index d9edfec5..f3e24ee6 100644
--- a/lib/python/Components/Timezones.py
+++ b/lib/python/Components/Timezones.py
@@ -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: