|
|
|
@ -1559,11 +1559,12 @@ class Builder(Update):
|
|
|
|
|
:return:
|
|
|
|
|
"""
|
|
|
|
|
builder_path = self.clVars.Get('cl_builder_path')
|
|
|
|
|
programs = getRunCommands(chroot=builder_path)
|
|
|
|
|
programs = getRunCommands(chroot=builder_path, withpid=True)
|
|
|
|
|
if programs:
|
|
|
|
|
pid, cmd = programs[0]
|
|
|
|
|
raise BuilderError(
|
|
|
|
|
_("Chrooted {cmd} has already run into {id}").format(
|
|
|
|
|
cmd=programs[0].split('\x00')[0],
|
|
|
|
|
cmd="{}[{}]".format(cmd.split('\x00')[0], pid),
|
|
|
|
|
id=self.clVars.Get('cl_builder_id')
|
|
|
|
|
))
|
|
|
|
|
return True
|
|
|
|
|