aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authoracid-burn <acid-burn@opendreambox.org>2010-09-21 21:29:48 +0200
committeracid-burn <acid-burn@opendreambox.org>2010-09-21 21:29:48 +0200
commit721452bdbfe05409846dab5d183228ca2ca11ee5 (patch)
treefa7232b045fe35aeb6d5f19f67387eb8ecc6c371 /tools
parent65ce4a9bd27e342545b88faf9420426113d32702 (diff)
downloadenigma2-721452bdbfe05409846dab5d183228ca2ca11ee5.tar.gz
enigma2-721452bdbfe05409846dab5d183228ca2ca11ee5.zip
Enigma2-meta: rework plugin meta files and prepare for inclusion into enigma2 translation.
Meta.xml files are now only in english and translation is now easy possible for all languages over enigma2 translation project. This also reduces consumed space inside flash memory. Add missing TempFanControl plugin meta and LICENSE. DreamInfohandler.py,SoftwareManager: follow meta xml changes. fixes #578
Diffstat (limited to 'tools')
-rwxr-xr-xtools/genmetaindex.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/tools/genmetaindex.py b/tools/genmetaindex.py
index f7dc5b98..f42cefc2 100755
--- a/tools/genmetaindex.py
+++ b/tools/genmetaindex.py
@@ -1,25 +1,23 @@
-# usage: genmetaindex.py <language> <xml-files> > index.xml
+# usage: genmetaindex.py <xml-files> > index.xml
import sys, os
from xml.etree.ElementTree import ElementTree, Element
-language = sys.argv[1]
-
root = Element("index")
-for file in sys.argv[2:]:
+for file in sys.argv[1:]:
p = ElementTree()
p.parse(file)
package = Element("package")
package.set("details", os.path.basename(file))
- # we need all prerequisuited
+ # we need all prerequisites
package.append(p.find("prerequisites"))
info = None
- # we need some of the info, but only our locale
+ # we need some of the info, but not all
for i in p.findall("info"):
- if not info or i.get("language") == language:
+ if not info:
info = i
assert info