From 601ea61bbe6efa01e213d4507013a3750f1243d2 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Wed, 26 Mar 2008 12:38:59 +0000 Subject: don't abort if /etc/localtime already exists (and enigma2 isn't run as root) --- lib/python/Components/Timezones.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/python') 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: -- cgit v1.2.3