code stringlengths 3 6.57k |
|---|
update_workspace() |
clean_archive(dir) |
self.rm(dir) |
create_workspace(dir) |
self.rm_if_exists(cache_dest) |
self.rm_if_exists(workspace_dir) |
define() |
self.resolve_version(workspace_dir) |
md5(cache_dest) |
os.path.exists(cache_dest) |
update_cache() |
create_cache() |
os.path.exists(workspace_dir) |
update_workspace() |
create_workspace(workspace_dir) |
define() |
get_download_dest(url) |
os.path.join(source_cache_dir, os.path.basename(url) |
get_git_cache_path() |
os.path.join(source_cache_dir, name) |
expand_macros(self.sources, self) |
clean_nop (dir) |
os.path.basename(self._path) |
md5(self._path) |
source.startswith ('http://') |
Exception ('HTTP downloads are no longer allowed: %s', source) |
source.startswith(('http://', 'https://', 'ftp://') |
get_download_dest(source) |
os.path.basename(source) |
warn(repr(e) |
verbose('Trying original source') |
source.startswith(('git://', 'file://', 'ssh://') |
source.endswith('.git') |
or (os.path.isdir(source) |
git_isrootdir (self, source) |
os.path.isdir(source) |
get_git_cache_path() |
os.path.isabs(source) |
os.path.isdir(source) |
trace('copying local dir source %s ' % source) |
clean_local_copy(dir) |
self.rm_if_exists(dir) |
shutil.copytree(source, scratch_workspace) |
self.resolve_version(scratch_workspace) |
s (local workspace: %s) |
os.path.isfile(os.path.join(path, source) |
os.path.join(path, source) |
md5(resolved_source) |
error('could not resolve source: %s' % source) |
trace('%s resolved to %s' % (source, resolved_source) |
local_sources.append(resolved_source) |
self.rm_if_exists(cache) |
self.rm_if_exists(scratch_workspace) |
len(self.sources) |
len(local_sources) |
error('workspace cleaning function (clean_func) |
os.path.exists(scratch_workspace) |
os.mkdir(scratch_workspace) |
shutil.move(scratch_workspace, self.workspace) |
os.path.exists(self.workspace) |
error ('Workspace was not created') |
request_build(self, reason) |
override_build(self, reason) |
start_build(self, arch, dest, stage) |
info(self.desc) |
protect_dir(self.staged_profile, recursive=True) |
os.path.isfile(build_artifact) |
self.deploy_package(build_artifact, self.staged_profile) |
os.path.basename(build_artifact) |
verbose(self.buildstring) |
if (arch == 'darwin-universal' and self.needs_lipo) |
self.rm_if_exists(workspace_x86) |
self.rm_if_exists(workspace_x64) |
shutil.move(workspace, workspace_x86) |
self.shadow_copy(workspace_x86, workspace_x64) |
self.link(workspace_x86, workspace) |
os.path.join(self.profile.bockbuild.scratch, self.name + '-x86.install') |
self.link(workspace_x64, workspace) |
os.path.join(self.profile.bockbuild.scratch, self.name + '-x64.install') |
delete(workspace) |
shutil.move(workspace_x86, workspace) |
self.lipo_dirs(stagedir_x32, package_stage, 'lib') |
self.do_build('darwin-64') |
self.do_build('darwin-32') |
self.do_build(arch) |
self.make_artifact(package_stage, build_artifact) |
self.deploy_package(build_artifact, target) |
deploy_package(self, artifact, dest) |
trace('Deploying (%s -> %s) |
os.path.basename(artifact) |
os.path.basename(dest) |
unprotect_dir(dest, recursive=True) |
assert_exists(artifact) |
self.rm_if_exists(artifact_stage) |
unzip(artifact, artifact_stage) |
assert_exists(artifact_stage) |
self.rm_if_exists(artifact) |
self.rm_if_exists(artifact_stage) |
protect_dir(dest, recursive=True) |
ensure_dir(artifact_stage) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.