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])] = []

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