diff options
| author | acid-burn <acid-burn@opendreambox.org> | 2010-09-21 21:29:48 +0200 |
|---|---|---|
| committer | acid-burn <acid-burn@opendreambox.org> | 2010-09-21 21:29:48 +0200 |
| commit | 721452bdbfe05409846dab5d183228ca2ca11ee5 (patch) | |
| tree | fa7232b045fe35aeb6d5f19f67387eb8ecc6c371 /tools/genmetaindex.py | |
| parent | 65ce4a9bd27e342545b88faf9420426113d32702 (diff) | |
| download | enigma2-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/genmetaindex.py')
| -rwxr-xr-x | tools/genmetaindex.py | 12 |
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 |
