diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-03-07 22:00:45 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-03-07 22:00:45 +0000 |
commit | 40c0c342fcdd1cea0b9b8972ea539d7368b85f82 (patch) | |
tree | 324bf5ac06dd0b4d58565796ee73c75e7fbbec0f /tools/bundlecvt.py | |
parent | 93cbd3e8647462318ab8d54c133e6861d2ab531d (diff) | |
download | bcfg2-40c0c342fcdd1cea0b9b8972ea539d7368b85f82.tar.gz bcfg2-40c0c342fcdd1cea0b9b8972ea539d7368b85f82.tar.bz2 bcfg2-40c0c342fcdd1cea0b9b8972ea539d7368b85f82.zip |
Remove two old (broken utilities)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1798 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'tools/bundlecvt.py')
-rw-r--r-- | tools/bundlecvt.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tools/bundlecvt.py b/tools/bundlecvt.py deleted file mode 100644 index 176c9a46d..000000000 --- a/tools/bundlecvt.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python -# $Id: $ - -from os import listdir -from sys import argv -from elementtree.ElementTree import XML, Element, tostring - -if __name__ == '__main__': - bname = argv[1] - translations = argv[2] - tdata = {} - - for t in listdir(translations): - data = XML(open("%s/%s"%(translations,t)).read()) - tdata[data.attrib['system']] = {'VConfig':{}, 'VPackage':{}, 'VService':{}, 'VFS':{}} - for entry in data.getchildren(): - if entry.tag == 'Image': - continue - tdata[data.attrib['system']][entry.tag][entry.attrib['name']] = entry.getchildren() - bundle = XML(open(bname).read()) - - new = Element('Bundle', version='2.0', name=bundle.attrib['name']) - - for system in tdata.keys(): - b = Element("System", name=system) - for entry in bundle.getchildren(): - try: - map(b.append, tdata[system][entry.tag][entry.attrib['name']]) - except: - pass - new.append(b) - - print tostring(new) - |