fix no more turning positioner after leave positioner setup in some cases
[enigma2.git] / lib / python / Components / DreamInfoHandler.py
index 6cf3b00428dd3206ae67e738919360a4503440f4..85e2b5339bc6eb33614c75f16e14033208f8d5b9 100755 (executable)
@@ -94,6 +94,8 @@ class InfoHandler(xml.sax.ContentHandler):
                                self.attributes["name"] = str(attrs["name"].encode("utf-8"))
                        if attrs.has_key("packagename"):
                                self.attributes["packagename"] = str(attrs["packagename"].encode("utf-8"))
+                       if attrs.has_key("packagetype"):
+                               self.attributes["packagetype"] = str(attrs["packagetype"].encode("utf-8"))
                        if attrs.has_key("shortdescription"):
                                self.attributes["shortdescription"] = str(attrs["shortdescription"].encode("utf-8"))
 
@@ -253,8 +255,8 @@ class DreamInfoHandler:
 
                for indexfile in os.listdir(self.directory[0]):
                        if indexfile.startswith("index"):
-                               if os.path.splitext(indexfile)[0][-3:-2] is not "_": #we first catch all non translated indexfiles
-                                       indexfileList.append(os.path.splitext(indexfile)[0])
+                               if indexfile.endswith("_en.xml"): #we first catch all english indexfiles
+                                       indexfileList.append(os.path.splitext(indexfile)[0][:-3])
 
                if len(indexfileList):
                        for file in indexfileList:
@@ -265,7 +267,7 @@ class DreamInfoHandler:
                                                self.readIndex(self.directory[0] + "/", neededFile + '_' + self.language + '.xml')
                                        else:
                                                #print "reading original index file"
-                                               self.readIndex(self.directory[0] + "/", neededFile + '.xml')
+                                               self.readIndex(self.directory[0] + "/", neededFile + '_en.xml')
 
                if prerequisites:
                        for package in self.packagesIndexlist[:]: