@ -2266,16 +2266,18 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction,
prefix = self . objVar . Get ( ' cl_chroot_path ' )
nfenv = dict ( os . environ )
nfenv [ " NOFOUND_STATUS " ] = " 0 "
kwargs = { ' lang ' : ' C ' , ' envdict ' : nfenv }
if prefix == " / " :
p = process ( self . check_command ( " /usr/bin/eix " , prefix = prefix ) ,
" -* " , " --format " , " <bestslotversions:NAMEASLOT> " ,
" --category " , " -e " , category ,
lang = " C " , envdict = nfenv )
args = [ self . check_command ( " /usr/bin/eix " , prefix = prefix ) ]
else :
p = process ( " /bin/chroot " , prefix , self . check_command ( " /usr/bin/eix " , prefix = prefix ) ,
" -* " , " --format " , " <bestslotversions:NAMEASLOT> " ,
" --category " , " -e " , category ,
lang = " C " , envdict = nfenv )
args = [ " /bin/chroot " , prefix , self . check_command ( " /usr/bin/eix " , prefix = prefix ) ]
args . extend ( [ " -* " , " --format " , " <bestslotversions:NAMEASLOT> " ] )
if " / " in category :
args . extend ( [ " -e " , category ] )
else :
args . extend ( [ " --category " , " -e " , category ] )
p = process ( * args , * * kwargs )
if p . success ( ) :
atoms = [ x for x in p . read ( ) . split ( ) if x . strip ( ) ]
if not atoms :