aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/SystemPlugins/SoftwareManager
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-02-14 11:12:24 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-02-14 11:12:24 +0100
commit677fc4dab74273f0a1e2a60c11ddd7a8f2341a11 (patch)
treebd6ae6ed965df074ec8671d34d4160e4b7a27162 /lib/python/Plugins/SystemPlugins/SoftwareManager
parent7b5f45dec47f8472cc699a72949c52e6e5b2c279 (diff)
downloadenigma2-677fc4dab74273f0a1e2a60c11ddd7a8f2341a11.tar.gz
enigma2-677fc4dab74273f0a1e2a60c11ddd7a8f2341a11.zip
fix possible crash (seen in crashlog)
Diffstat (limited to 'lib/python/Plugins/SystemPlugins/SoftwareManager')
-rwxr-xr-xlib/python/Plugins/SystemPlugins/SoftwareManager/plugin.py4
1 files changed, 3 insertions, 1 deletions
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)