From: Andreas Monzner Date: Sat, 12 Jan 2008 11:52:03 +0000 (+0000) Subject: handle ret value of eConsoleAppContainer.execute X-Git-Tag: 2.6.0~1624 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/e74488aadbdfd34aea53166c9447016f3fa3ac29 handle ret value of eConsoleAppContainer.execute --- 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!!");