aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-10-29 16:01:37 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-10-29 16:01:37 +0000
commit7b0d371a7bbfb9e8d624eec9ed97e9a835f75ca7 (patch)
treee56e0c595b26b40bc5da2b75e8e384a373ae3ada /lib/python/Components
parentd7b1e65daf11504f1d3bb270d574d9022c45d97f (diff)
downloadenigma2-7b0d371a7bbfb9e8d624eec9ed97e9a835f75ca7.tar.gz
enigma2-7b0d371a7bbfb9e8d624eec9ed97e9a835f75ca7.zip
some ipkg changes.. (done by ritzmo)
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/Ipkg.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/python/Components/Ipkg.py b/lib/python/Components/Ipkg.py
index dbc99653..eac26428 100644
--- a/lib/python/Components/Ipkg.py
+++ b/lib/python/Components/Ipkg.py
@@ -10,6 +10,7 @@ class IpkgComponent:
EVENT_LISTITEM = 9
EVENT_DONE = 10
EVENT_ERROR = 11
+ EVENT_MODIFIED = 12
CMD_INSTALL = 0
CMD_LIST = 1
@@ -95,6 +96,9 @@ class IpkgComponent:
self.callCallbacks(self.EVENT_ERROR, None)
elif data.find('ipkg_download: ERROR:') == 0:
self.callCallbacks(self.EVENT_ERROR, None)
+ elif data.find(' Configuration file') == 0:
+ self.callCallbacks(self.EVENT_MODIFIED, data.split(' \'', 1)[1][:-1])
+
def callCallbacks(self, event, param = None):
for callback in self.callbackList:
callback(event, param)
@@ -110,3 +114,9 @@ class IpkgComponent:
def isRunning(self):
return self.cmd.running()
+
+ def write(self, what):
+ if what:
+ # We except unterminated commands
+ what += "\n"
+ self.cmd.write(what, len(what))