add fill tree packages und fix discription USE #6

pull/1/head
serkus01 3 years ago
parent d285452416
commit b96aa7224a

@ -16,6 +16,7 @@ AliaseCategory ={"www-client": "Браузеры",
"www-server": "Сервера",
'app-etitor':"Текстовые редакторы",
"game":"Игры",
"net-im":"Общение",
"dev-lang":" Языка програмироыввние",
"media-video": "Видео",
"media-sound": "Аудио"
@ -24,7 +25,7 @@ def create_db():
overlays = get_list_overlays()
recovers = ScanRecoverFile()
pkg_list ={}
listUses={LocalUSE=get_global_USE(),GlobalUSE = get_global_USE() }
listUses=dict(LocalUSE=get_global_USE(),GlobalUSE = get_global_USE())
port_dir =["/var/db/repos", "/usr/portage"]
if not os.path.exists('./pkgs.json'):
print("Create ramdb")
@ -53,7 +54,7 @@ def create_db():
if str(d.split("/")[-2] +"/" + d.split("/")[-1]) in AliaseCategory:
all_pkgs.append(AliaseCategory[d])
else:
all_pkgs[str(d.split("/")[-2] +"/" + d.split("/")[-1]))]= str(d.split("/")[-2] +"/" + d.split("/")[-1]))
all_pkgs[str(d.split("/")[-2] +"/" + d.split("/")[-1])]= str(d.split("/")[-2] +"/" + d.split("/")[-1])
if d.split("/")[-2] not in pkg_list.keys():
pkg_list[str(d.split("/")[-2])] = []
@ -81,10 +82,10 @@ def on_find(p_v):
pkg_list = data.split("\n")
for i in pkg_list:
if p_v in i and not i in p:
print(i)
p.append(str(i))
#ret_p = ret_p +"\t" + i
if p_v in i and not i in p:
print(i)
p.append(str(i))
#ret_p = ret_p +"\t" + i
print("Find in template:\t" + str(len(p)))
#ret = {"Name": ret_p.split("\t")}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save