aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/DreamInfoHandler.py
diff options
context:
space:
mode:
authorMladen Horvat <acid-burn@opendreambox.org>2011-04-13 23:12:10 +0200
committerMladen Horvat <acid-burn@opendreambox.org>2011-04-13 23:12:10 +0200
commit710962d4f216b12c7cc25a189cbcc890a2ab5622 (patch)
treebfe670f2dfc12d197d49af4b0d3e7fddf1db6510 /lib/python/Components/DreamInfoHandler.py
parentc563ffd07163d5982fa4a3d8e9c2486f480b899a (diff)
downloadenigma2-710962d4f216b12c7cc25a189cbcc890a2ab5622.tar.gz
enigma2-710962d4f216b12c7cc25a189cbcc890a2ab5622.zip
Components/DreamInfoHandler.py, SystemPlugins/SoftwareManager: add possibility to have also non plugins/skins inside SoftwareManager.
add support for 'needsRestart' option inside meta descriptions for non plugins/skins. refs #389
Diffstat (limited to 'lib/python/Components/DreamInfoHandler.py')
-rwxr-xr-xlib/python/Components/DreamInfoHandler.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/Components/DreamInfoHandler.py b/lib/python/Components/DreamInfoHandler.py
index 8e9c29d1..8097365c 100755
--- a/lib/python/Components/DreamInfoHandler.py
+++ b/lib/python/Components/DreamInfoHandler.py
@@ -84,6 +84,8 @@ class InfoHandler(xml.sax.ContentHandler):
self.attributes["packagename"] = str(attrs["packagename"])
if attrs.has_key("packagetype"):
self.attributes["packagetype"] = str(attrs["packagetype"])
+ if attrs.has_key("needsRestart"):
+ self.attributes["needsRestart"] = str(attrs["needsRestart"])
if attrs.has_key("shortdescription"):
self.attributes["shortdescription"] = str(attrs["shortdescription"])
@@ -120,6 +122,8 @@ class InfoHandler(xml.sax.ContentHandler):
self.attributes["name"] = str(data)
if self.elements[-1] == "packagename":
self.attributes["packagename"] = str(data)
+ if self.elements[-1] == "needsRestart":
+ self.attributes["needsRestart"] = str(data)
if self.elements[-1] == "shortdescription":
self.attributes["shortdescription"] = str(data)
if self.elements[-1] == "description":