mirror of https://github.com/ksherlock/ample.git
add the software list to the machine description
This commit is contained in:
parent
521d33ba55
commit
9a7b5e6af0
|
@ -167,6 +167,11 @@ def find_media(parent, include_slots=False):
|
||||||
if not media: return None
|
if not media: return None
|
||||||
return media
|
return media
|
||||||
|
|
||||||
|
|
||||||
|
def find_software(parent):
|
||||||
|
swl = parent.findall("./softwarelist")
|
||||||
|
return [x.get("name") + ".xml" for x in swl]
|
||||||
|
|
||||||
devices = {}
|
devices = {}
|
||||||
|
|
||||||
p = argparse.ArgumentParser()
|
p = argparse.ArgumentParser()
|
||||||
|
@ -256,6 +261,9 @@ for m in machines:
|
||||||
data[s] = tmp
|
data[s] = tmp
|
||||||
|
|
||||||
|
|
||||||
|
data["software"] = find_software(machine)
|
||||||
|
|
||||||
|
|
||||||
path = "../Ample/Resources/{}.plist".format(m)
|
path = "../Ample/Resources/{}.plist".format(m)
|
||||||
with open(path, "w") as f:
|
with open(path, "w") as f:
|
||||||
f.write(to_plist(data))
|
f.write(to_plist(data))
|
||||||
|
|
Loading…
Reference in New Issue