code stringlengths 3 6.57k |
|---|
list() |
iterate_dir(artifact_stage, with_links = True, summary=False) |
os.path.relpath(path, artifact_stage) |
os.path.join(dest, relpath) |
os.path.exists(destpath) |
identical_files(path, destpath) |
files.append(relpath) |
os.path.islink(path) |
os.path.getsize(path) |
files.sort() |
is_changed(files, artifact + '.files') |
open(artifact + '.files', 'w') |
output.write('\n'.join(files) |
len(files) |
merge_trees(artifact_stage, dest, False) |
functools.partial(self.build_sh, cwd=artifact_stage) |
self.deploy() |
self.rm_if_exists(artifact_stage) |
protect_dir(dest, recursive=True) |
verbose ('%d files, %sMB' % (len(files) |
format (size /1024 / 1024 ) |
do_build(self, arch, install_dir=None) |
progress('Building (arch: %s) |
self.rm_if_exists(self.stage_root) |
os.makedirs(self.staged_prefix) |
protect_dir(self.stage_root) |
self.arch_build(arch) |
self.expand_build_env() |
functools.partial(self.build_sh, cwd=self.workspace) |
self.prep() |
self.build() |
self.install() |
os.path.exists(self.staged_prefix) |
error('Result directory %s not found.' % self.staged_prefix) |
self.profile.process_package(self) |
self.clean (dir=self.workspace) |
except (Exception, KeyboardInterrupt) |
self.rm_if_exists(self.stage_root) |
isinstance(e, CommandException) |
os.path.exists(self.workspace) |
self.rm_if_exists(path) |
os.path.basename(self.workspace) |
os.listdir(self.profile.bockbuild.execution_root) |
d.endswith('.problem') |
self.rm(os.path.join(self.profile.bockbuild.execution_root, d) |
shutil.move(self.workspace, problem_dir) |
info('Build moved to ./%s\n' % os.path.basename(problem_dir) |
os.path.basename(self.profile.bockbuild.env_script) |
error(str(e) |
self.rm_if_exists(self.workspace) |
make_artifact(self, stage_dir, build_artifact) |
self.rm_if_exists(build_artifact) |
zip(stage_dir, build_artifact) |
self.rm_if_exists(stage_dir) |
deploy(self) |
build_sh(self, command, cwd) |
isinstance(command, list) |
map(lambda cmd: self.build_sh(cmd, cwd) |
isinstance(command, str) |
error('command arg must be a string: %s' % repr(command) |
os.path.isdir(cwd) |
error('Directory does not exist: %s' % cwd) |
expand_macros(command, self) |
error('MACRO EXPANSION ERROR: ' + str(e) |
logprint('\t@\t' + expand_macros(command, self) |
open(self.log, 'a') |
log.write('%s\n' % env_command) |
run_shell(full_command, cwd=cwd) |
open(self.log, 'r') |
log.readlines() |
line.replace(config.absolute_root, '@') |
warn('build env: ' + self.build_env) |
expand_macros(command, self) |
backtick(self, command) |
expand_macros(command, self) |
backtick(command) |
cwd(self) |
os.getcwd() |
warn('In invalid directory: %s' % self._cwd) |
cd(self, dir) |
expand_macros(dir, self) |
self.cwd() |
os.chdir(dir) |
self.cwd() |
trace(dir) |
pushd(self, dir) |
len(self._dirstack) |
self._dirstack.append({'dir': self._cwd, 'caller': 'profile'}) |
self.cd(dir) |
self._dirstack.append({'dir': self._cwd, 'caller': get_caller() |
popd(self, failure=False) |
get_caller() |
self._dirstack.pop() |
warn('popd: Unmatched pushd/popd callers: (%s/%s) |
self.cwd() |
self.cd(top['dir']) |
prep(self) |
rm_if_exists(self, path) |
expand_macros(path, self) |
os.path.lexists(path) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.