You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
625 B
24 lines
625 B
#-*- codding: UTF-8 -*-
|
|
#!/usr/bin/env python
|
|
import os, sys
|
|
|
|
def get_global_USE():
|
|
ListUSE={}
|
|
path ='/usr/portage/profiles/use.desc'
|
|
with open(path) as uses:
|
|
with open('./recovers.txt') as uses:
|
|
line = uses.read().replace("\n", "")
|
|
if line.startswith('#') and line =='':
|
|
pass
|
|
else:
|
|
try:
|
|
#result[cat].append(search(r))
|
|
ListUSE[str(line.split('-'[0]))] =str(line.split('-')[1:])
|
|
except Exception (e):
|
|
print(e)
|
|
return ListUSE
|
|
|
|
|
|
def get_local_USE():
|
|
pass
|