|
|
|
@ -2264,16 +2264,18 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction,
|
|
|
|
|
Функция выполняет eix и возвращает список пакетов
|
|
|
|
|
"""
|
|
|
|
|
prefix = self.objVar.Get('cl_chroot_path')
|
|
|
|
|
nfenv = dict(os.environ)
|
|
|
|
|
nfenv["NOFOUND_STATUS"]="0"
|
|
|
|
|
if prefix == "/":
|
|
|
|
|
p = process(self.check_command("/usr/bin/eix", prefix=prefix),
|
|
|
|
|
"-*", "--format", "<bestslotversions:NAMEASLOT>",
|
|
|
|
|
"--category", "-e", category,
|
|
|
|
|
lang="C", envdict=dict(os.environ))
|
|
|
|
|
lang="C", envdict=nfenv)
|
|
|
|
|
else:
|
|
|
|
|
p = process("/bin/chroot", prefix, self.check_command("/usr/bin/eix", prefix=prefix),
|
|
|
|
|
"-*", "--format", "<bestslotversions:NAMEASLOT>",
|
|
|
|
|
"--category", "-e", category,
|
|
|
|
|
lang="C", envdict=dict(os.environ))
|
|
|
|
|
lang="C", envdict=nfenv)
|
|
|
|
|
if p.success():
|
|
|
|
|
atoms = [x for x in p.read().split() if x.strip()]
|
|
|
|
|
if not atoms:
|
|
|
|
|