From: Andreas Oberritter Date: Wed, 26 Mar 2008 12:38:59 +0000 (+0000) Subject: don't abort if /etc/localtime already exists (and enigma2 isn't run as root) X-Git-Tag: 2.6.0~1418 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/601ea61bbe6efa01e213d4507013a3750f1243d2 don't abort if /etc/localtime already exists (and enigma2 isn't run as root) --- 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: