Elektro: Patching Enigma should now work
authorMoritz Strübe <morty@users.schwerkraft.elitedvb.net>
Sun, 26 Jul 2009 11:40:27 +0000 (11:40 +0000)
committerMoritz Strübe <morty@users.schwerkraft.elitedvb.net>
Sun, 26 Jul 2009 11:40:27 +0000 (11:40 +0000)
elektro/CONTROL/PluginComponent.py.patch [deleted file]
elektro/CONTROL/postinst
elektro/src/PluginComponent.py.patch [new file with mode: 0644]

diff --git a/elektro/CONTROL/PluginComponent.py.patch b/elektro/CONTROL/PluginComponent.py.patch
deleted file mode 100644 (file)
index bb44472..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- /usr/lib/enigma2/python/Components/PluginComponent.py      2009-03-31 19:32:46.000000000 +0200
-+++ /usr/lib/enigma2/python/Components/PluginComponent.py      2009-07-20 20:02:32.000000000 +0200
-@@ -121,7 +121,7 @@
-               wakeup = -1
-               for p in self.pluginList:
-                       current = p.getWakeupTime()
--                      if current > -1 and wakeup < current:
-+                      if current > -1 and (wakeup > current or wakeup == -1):
-                               wakeup = current
-               return int(wakeup)
index 7376e7c..0655e64 100644 (file)
@@ -7,7 +7,7 @@ if [ `grep 'if current > -1 and wakeup < current:' /usr/lib/enigma2/python/Compo
    ls -ll /usr/lib/enigma2/python/Components/PluginComponent.py*
    
    echo "Patching"
-   patch -p0 < PluginComponent.py.patch
+   patch -p0 < /usr/lib/enigma2/python/Plugins/Extensions/Elektro/PluginComponent.py.patch
    ls /usr/lib/enigma2/python/Components/PluginComponent.py*
 else
    echo "PluginComponent.py already patched"
diff --git a/elektro/src/PluginComponent.py.patch b/elektro/src/PluginComponent.py.patch
new file mode 100644 (file)
index 0000000..bb44472
--- /dev/null
@@ -0,0 +1,11 @@
+--- /usr/lib/enigma2/python/Components/PluginComponent.py      2009-03-31 19:32:46.000000000 +0200
++++ /usr/lib/enigma2/python/Components/PluginComponent.py      2009-07-20 20:02:32.000000000 +0200
+@@ -121,7 +121,7 @@
+               wakeup = -1
+               for p in self.pluginList:
+                       current = p.getWakeupTime()
+-                      if current > -1 and wakeup < current:
++                      if current > -1 and (wakeup > current or wakeup == -1):
+                               wakeup = current
+               return int(wakeup)