From e74488aadbdfd34aea53166c9447016f3fa3ac29 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Sat, 12 Jan 2008 11:52:03 +0000 Subject: [PATCH] handle ret value of eConsoleAppContainer.execute --- lib/python/Screens/Console.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/python/Screens/Console.py b/lib/python/Screens/Console.py index b8f7412..622fb44 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!!"); -- 2.7.4