linux-dreambox-3.2: fix sha256sum after 'push to 3.2.54'
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-3.999git20131118 / 0003-force-ConfigInteger-value-to-integer.-this-should-fi.patch
1 From 617e80a880f89fe2d1743ac885e8df27d06d4d00 Mon Sep 17 00:00:00 2001
2 From: ghost <andreas.monzner@dream-property.net>
3 Date: Mon, 21 Oct 2013 11:30:30 +0200
4 Subject: [PATCH 3/4] force ConfigInteger value to integer.... (this should
5  fix problems like "File
6  "/usr/lib/enigma2/python/mytest.py", line 133, in
7  <module> config.misc.prev_wakeup_time =
8  ConfigInteger(default=0) ValueError: invalid literal
9  for int() with base 10: '1382275925.84')
10
11 ---
12  usr/lib/enigma2/python/Components/config.py |    2 +-
13  1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/usr/lib/enigma2/python/Components/config.py b/usr/lib/enigma2/python/Components/config.py
16 index 68615e7..b2057dc 100644
17 --- a/usr/lib/enigma2/python/Components/config.py
18 +++ b/usr/lib/enigma2/python/Components/config.py
19 @@ -778,7 +778,7 @@ class ConfigInteger(ConfigSequence):
20  
21         # you need to override this to do input validation
22         def setValue(self, value):
23 -               self._value = [value]
24 +               self._value = [int(value)]
25                 self.changed()
26  
27         def getValue(self):
28 -- 
29 1.7.10.4
30