|
|
@ -872,12 +872,18 @@ def getPkgUses(fullpkg):
|
|
|
|
return None
|
|
|
|
return None
|
|
|
|
usePath = os.path.join(pkgCategory,packages[-1]['PF'],"USE")
|
|
|
|
usePath = os.path.join(pkgCategory,packages[-1]['PF'],"USE")
|
|
|
|
iusePath = os.path.join(pkgCategory,packages[-1]['PF'],"IUSE")
|
|
|
|
iusePath = os.path.join(pkgCategory,packages[-1]['PF'],"IUSE")
|
|
|
|
|
|
|
|
iuse = open(iusePath,'r').read().strip().split() \
|
|
|
|
|
|
|
|
if os.path.exists(iusePath) else \
|
|
|
|
|
|
|
|
[]
|
|
|
|
|
|
|
|
use = open(usePath,'r').read().strip().split() \
|
|
|
|
|
|
|
|
if os.path.exists(usePath) else \
|
|
|
|
|
|
|
|
[]
|
|
|
|
return (map(lambda x:x[1:] if x.startswith("+") else x,
|
|
|
|
return (map(lambda x:x[1:] if x.startswith("+") else x,
|
|
|
|
filter(lambda x:x,
|
|
|
|
filter(lambda x:x,
|
|
|
|
open(usePath,'r').read().strip().split())),
|
|
|
|
use)),
|
|
|
|
map(lambda x:x[1:] if x.startswith("+") else x,
|
|
|
|
map(lambda x:x[1:] if x.startswith("+") else x,
|
|
|
|
filter(lambda x:x,
|
|
|
|
filter(lambda x:x,
|
|
|
|
open(iusePath,'r').read().strip().split())))
|
|
|
|
iuse)))
|
|
|
|
|
|
|
|
|
|
|
|
def getPkgActiveUses(fullpkg):
|
|
|
|
def getPkgActiveUses(fullpkg):
|
|
|
|
"""Get active uses from package"""
|
|
|
|
"""Get active uses from package"""
|
|
|
|