From: ghost Date: Sat, 14 Feb 2009 10:12:24 +0000 (+0100) Subject: fix possible crash (seen in crashlog) X-Git-Tag: 2.6.0~431^2~8 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/677fc4dab74273f0a1e2a60c11ddd7a8f2341a11?hp=7b5f45dec47f8472cc699a72949c52e6e5b2c279 fix possible crash (seen in crashlog) --- diff --git a/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py b/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py index 85d23284..81e1e9f9 100755 --- a/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py +++ b/lib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py @@ -342,7 +342,7 @@ class PacketManager(Screen): self.onShown.append(self.setWindowTitle) self.onLayoutFinish.append(self.rebuildList) self.onClose.append(self.cleanup) - + def cleanup(self): self.ipkg.stop() if self.Console is not None: @@ -448,6 +448,8 @@ class PacketManager(Screen): for x in result.splitlines(): split = x.split(' - ') self.packetlist.append([split[0].strip(), split[1].strip(),split[2].strip()]) + if not self.Console: + self.Console = Console() cmd = "ipkg list_installed" self.Console.ePopen(cmd, self.IpkgListInstalled_Finished)