add parse make.conf parse #2

master
serkus 2 years ago
parent 2e5b1de675
commit fd364790e9

@ -18,15 +18,26 @@ def parseMakeConf():
if StateBox is 'Null' and not line.endswith('"'):
StateBox = line.split('=')[0]
MakeConfig[StateBox] = line.split('=')] = []
for i in line.split('=')] = line.split(" ")
MakeConfig[StateBox].append(i)
elif StateBox is not 'Null' and not line.endswith('"')
StateBox ='Null'
else:
pass
else:
pass
for i in line.split('=')] = line.split(" ")
MakeConfig[StateBox].append(i)
elif StateBox is 'Null' and line.endswith('"'):
MakeConfig[StateBox] = line.split(" ")
print(MakeConfig)
def parsePackageUse():
with open (Config.Portage['package.use'], 'r') as f:
lines = f.read().split("\n")
def
def parsePackage.use():
with open (Config.Portage['package.use'], 'r') as f:
lines = f.read().split("\n")
if __name__ == '__main__':
parseMakeConfig()
Loading…
Cancel
Save