diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-01-12 11:52:03 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-01-12 11:52:03 +0000 |
| commit | e74488aadbdfd34aea53166c9447016f3fa3ac29 (patch) | |
| tree | 3a1c8e1b936a64ea1b00b19cb6f2586451210ce7 /lib/python | |
| parent | cd548f05df305c56f7919685499c85998d7c0067 (diff) | |
| download | enigma2-e74488aadbdfd34aea53166c9447016f3fa3ac29.tar.gz enigma2-e74488aadbdfd34aea53166c9447016f3fa3ac29.zip | |
handle ret value of eConsoleAppContainer.execute
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/Console.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/Screens/Console.py b/lib/python/Screens/Console.py index b8f74125..622fb447 100644 --- a/lib/python/Screens/Console.py +++ b/lib/python/Screens/Console.py @@ -43,12 +43,14 @@ class Console(Screen): def startRun(self): self["text"].setText(_("Execution Progress:") + "\n\n") print "Console: executing in run", self.run, " the command:", self.cmdlist[self.run] - self.container.execute(self.cmdlist[self.run]) + if self.container.execute(self.cmdlist[self.run]): #start of container application failed... + self.runFinished(-1) # so we must call runFinished manual def runFinished(self, retval): self.run += 1 if self.run != len(self.cmdlist): - self.container.execute(self.cmdlist[self.run]) + if self.container.execute(self.cmdlist[self.run]): #start of container application failed... + self.runFinished(-1) # so we must call runFinished manual else: str = self["text"].getText() str += _("Execution finished!!"); |
