git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5bd64b0
)
don't abort if /etc/localtime already exists (and enigma2 isn't run as root)
author
Andreas Oberritter
<
[email protected]
>
Wed, 26 Mar 2008 12:38:59 +0000
(12:38 +0000)
committer
Andreas Oberritter
<
[email protected]
>
Wed, 26 Mar 2008 12:38:59 +0000
(12:38 +0000)
lib/python/Components/Timezones.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Timezones.py
b/lib/python/Components/Timezones.py
index d9edfec5fdffd553648486d16d0fb8fbeafc9863..f3e24ee6c766eb4cd502c0efa47e050b1a52d849 100644
(file)
--- 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: