|
|
|
@ -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, getRunCommands)
|
|
|
|
|
copyWithPath, countFiles, listDirectory, getRunCommands, isMount)
|
|
|
|
|
from calculate.lib.utils.git import Git
|
|
|
|
|
from calculate.lib.utils.portage import Layman, EmergeLog, EmergeLogNamedTask, \
|
|
|
|
|
InstalledPackageInfo, EbuildInfoError, EbuildInfo, ChrootEix, \
|
|
|
|
@ -94,11 +94,12 @@ class Builder(Update):
|
|
|
|
|
@type build:Build
|
|
|
|
|
"""
|
|
|
|
|
if build:
|
|
|
|
|
build.close_distributive()
|
|
|
|
|
if isMount(self.clVars.Get('cl_builder_path')):
|
|
|
|
|
build.close_distributive()
|
|
|
|
|
build.remove()
|
|
|
|
|
if clear:
|
|
|
|
|
build.distributive.post_clear()
|
|
|
|
|
pkgdir = self.clVars.Get('cl_builder_pkgdir')
|
|
|
|
|
pkgdir = self.clVars.Get('cl_builder_pkgdir')
|
|
|
|
|
if clear_pkg:
|
|
|
|
|
if '/remote/' in pkgdir:
|
|
|
|
|
if path.exists(pkgdir):
|
|
|
|
|