|
|
|
@ -26,7 +26,7 @@ from calculate.lib.utils.files import (
|
|
|
|
|
pathJoin, PercentProgress, getProgPath, process, STDOUT, removeDir,
|
|
|
|
|
makeDirectory, writeFile, readLinesFile, chmod, chown, FilePermission,
|
|
|
|
|
find, FindFileType, removeFileWithEmptyDirectory,
|
|
|
|
|
copyWithPath, countFiles, listDirectory)
|
|
|
|
|
copyWithPath, countFiles, listDirectory, getRunCommands)
|
|
|
|
|
from calculate.lib.utils.git import Git
|
|
|
|
|
from calculate.lib.utils.portage import Layman, EmergeLog, EmergeLogNamedTask, \
|
|
|
|
|
InstalledPackageInfo, EbuildInfoError, EbuildInfo, ChrootEix, \
|
|
|
|
@ -984,6 +984,22 @@ class Builder(Update):
|
|
|
|
|
"Try to run later.")%build_id)
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
def check_chroot_run(self):
|
|
|
|
|
"""
|
|
|
|
|
Проверить наличие chroot процессов
|
|
|
|
|
:return:
|
|
|
|
|
"""
|
|
|
|
|
builder_path = self.clVars.Get('cl_builder_path')
|
|
|
|
|
programs = getRunCommands(chroot=builder_path)
|
|
|
|
|
if programs:
|
|
|
|
|
raise BuilderError(
|
|
|
|
|
_("Chrooted {cmd} has already run into {id}").format(
|
|
|
|
|
cmd=programs[0].split('\x00')[0],
|
|
|
|
|
id=self.clVars.Get('cl_builder_id')
|
|
|
|
|
))
|
|
|
|
|
return True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def update_menu(self, dn):
|
|
|
|
|
with IsoDistributive(dn) as iso:
|
|
|
|
|
d = iso.getDirectory()
|
|
|
|
|