[pkg-freevo-commits] r225 - packages/freevo/trunk/debian/patches
Andrea Mennucci
mennucc1 at alioth.debian.org
Sun Oct 30 11:01:39 UTC 2011
Author: mennucc1
Date: 2011-10-30 11:01:39 +0000 (Sun, 30 Oct 2011)
New Revision: 225
Modified:
packages/freevo/trunk/debian/patches/rc.py.diff
Log:
correct rc.py.diff so that freevo exits
Modified: packages/freevo/trunk/debian/patches/rc.py.diff
===================================================================
--- packages/freevo/trunk/debian/patches/rc.py.diff 2011-10-29 12:05:29 UTC (rev 224)
+++ packages/freevo/trunk/debian/patches/rc.py.diff 2011-10-30 11:01:39 UTC (rev 225)
@@ -1,6 +1,16 @@
---- x/src/rc.py.orig 2011-03-04 10:51:55.000000000 +0100
-+++ x/src/rc.py 2011-10-23 15:52:44.031558233 +0200
-@@ -199,9 +199,15 @@
+#Author: A Mennucc
+#Descrition: if lirc is not used , then the inputhelper exits immediatly, and in this case this class must ack that
+diff -u x/src/rc.py x/src/rc.py
+--- x/src/rc.py 2011-10-23 15:52:44.031558233 +0200
++++ x/src/rc.py 2011-10-30 11:53:16.042293119 +0100
+@@ -193,21 +193,30 @@
+ self.monitor = kaa.IOMonitor(self._handle_input)
+ self.monitor.register(self.input.stderr)
+
++ self.inputhelper_is_running=True
+
+ def _handle_input(self):
+ """
Handle input events from input helper over stderr
"""
data = self.input.stderr.read(self.wire_format.size)
@@ -16,6 +26,15 @@
+ self.input.poll()
+ if self.input.returncode != None:
+ self.monitor.unregister()
++ self.inputhelper_is_running=False
def __send_cmd(self, cmd):
"""
+ Send a command to the input helper
+ """
+- self.input.stdin.write(cmd + '\n')
++ if self.inputhelper_is_running:
++ self.input.stdin.write(cmd + '\n')
+
+ def suspend(self):
+ """
More information about the Pkg-freevo-commits
mailing list