From 7a6022a72e1729a029d2356f6425bb8b8bcf2454 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Mon, 18 Dec 2006 17:05:47 +0000 Subject: don't allow leaving the software update plugin while ipkg is running --- lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py') diff --git a/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py b/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py index 19ab3eea..dc494e6f 100644 --- a/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py +++ b/lib/python/Plugins/SystemPlugins/SoftwareUpdate/plugin.py @@ -327,10 +327,11 @@ class UpdatePlugin(Screen): pass def exit(self): - if self.packages != 0 and self.error == 0: - self.session.openWithCallback(self.exitAnswer, MessageBox, _("Upgrade finished. Do you want to reboot your Dreambox?")) - else: - self.close() + if not self.ipkg.isRunning(): + if self.packages != 0 and self.error == 0: + self.session.openWithCallback(self.exitAnswer, MessageBox, _("Upgrade finished. Do you want to reboot your Dreambox?")) + else: + self.close() def exitAnswer(self, result): if result is not None and result: -- cgit v1.2.3