|
|
@ -41,6 +41,7 @@ def get_list_overlays():
|
|
|
|
overlays = []
|
|
|
|
overlays = []
|
|
|
|
overlay = {}
|
|
|
|
overlay = {}
|
|
|
|
includes =[]
|
|
|
|
includes =[]
|
|
|
|
|
|
|
|
catalogOverls ={}
|
|
|
|
root = ET.fromstring(response.read())
|
|
|
|
root = ET.fromstring(response.read())
|
|
|
|
#print(root.tag)
|
|
|
|
#print(root.tag)
|
|
|
|
#print(root.attrib)
|
|
|
|
#print(root.attrib)
|
|
|
@ -70,11 +71,20 @@ def get_list_overlays():
|
|
|
|
feed = "У overlay нет ссылки и на дерево"
|
|
|
|
feed = "У overlay нет ссылки и на дерево"
|
|
|
|
|
|
|
|
|
|
|
|
overlay =dict(name=name, description=description, homepage=homepage, feed=feed)
|
|
|
|
overlay =dict(name=name, description=description, homepage=homepage, feed=feed)
|
|
|
|
|
|
|
|
|
|
|
|
if name in inc:
|
|
|
|
if name in inc:
|
|
|
|
includes.append(overlay)
|
|
|
|
includes.append(overlay)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if "for" in description:
|
|
|
|
|
|
|
|
c = description.split("for")[1].split(" ")[1]
|
|
|
|
|
|
|
|
catalogOverls[c].apend(overlay)
|
|
|
|
|
|
|
|
elif "Personal" in description or "personal" in description:
|
|
|
|
|
|
|
|
catalogOverls["Personal"].append(overlay)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
catalogOverls["othes"]. append(overlay)
|
|
|
|
|
|
|
|
|
|
|
|
overlays.append(overlay)
|
|
|
|
overlays.append(overlay)
|
|
|
|
#print(str(overlays))
|
|
|
|
#print(str(overlays))s
|
|
|
|
print(len(overlays))
|
|
|
|
print(len(overlays))
|
|
|
|
with open('./overlays.json', 'a') as f:
|
|
|
|
with open('./overlays.json', 'a') as f:
|
|
|
|
f.write(json.dumps({"repositories": dict(all=overlays, include=includes)}))
|
|
|
|
f.write(json.dumps({"repositories": dict(all=overlays, include=includes)}))
|
|
|
|