diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-03-31 17:35:26 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-04-18 12:44:10 +0200 |
commit | f47851aebb7763da72df7e73a64660fd8084f86a (patch) | |
tree | 6b110f83e35a924c52f142f9e5fed7fcbbff1aa7 /bin/bootstrap.py | |
parent | 0d8ffd486b5d77600cc19e6e8055f836c4571638 (diff) | |
download | justbuild-f47851aebb7763da72df7e73a64660fd8084f86a.tar.gz |
bootstrap: Replace prebuilt imports by pkgconfig
Diffstat (limited to 'bin/bootstrap.py')
-rwxr-xr-x | bin/bootstrap.py | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/bin/bootstrap.py b/bin/bootstrap.py index e62dc85b..73c9dd00 100755 --- a/bin/bootstrap.py +++ b/bin/bootstrap.py @@ -225,27 +225,27 @@ def config_to_local(*, repos_file, link_targets_file): if not isinstance(repo_desc, dict): repo_desc = {} if repo_desc.get("type") in ["archive", "zip"]: - local_bootstrap = desc.get("local_bootstrap", {}) + pkg_bootstrap = desc.get("pkg_bootstrap", {}) desc["repository"] = { "type": "file", "path": os.path.normpath( os.path.join( LOCALBASE, - local_bootstrap.get("local_path", "."))) + pkg_bootstrap.get("local_path", "."))) } - if "link_dirs" in local_bootstrap: + if "link_dirs" in pkg_bootstrap: link = [] - for entry in local_bootstrap["link_dirs"]: + for entry in pkg_bootstrap["link_dirs"]: link += ["-L", os.path.join(LOCALBASE, entry)] global_link_dirs.add(entry) - link += local_bootstrap.get("link", []) - local_bootstrap["link"] = link - desc["bootstrap"] = local_bootstrap - if "local_bootstrap" in desc: - del desc["local_bootstrap"] + link += pkg_bootstrap.get("link", []) + pkg_bootstrap["link"] = link + desc["bootstrap"] = pkg_bootstrap + if "pkg_bootstrap" in desc: + del desc["pkg_bootstrap"] if repo_desc.get("type") == "file": - local_bootstrap = desc.get("local_bootstrap", {}) - if local_bootstrap.get("local_path") and NON_LOCAL_DEPS: + pkg_bootstrap = desc.get("pkg_bootstrap", {}) + if pkg_bootstrap.get("local_path") and NON_LOCAL_DEPS: # local layer gets changed, keep a copy backup_name = "ORIGINAL: " + repo backup_layers[backup_name] = { @@ -255,11 +255,11 @@ def config_to_local(*, repos_file, link_targets_file): changed_file_roots[repo] = backup_name desc["repository"] = { "type": "file", - "path": local_bootstrap.get("local_path", desc["repository"].get("path")) + "path": pkg_bootstrap.get("local_path", desc["repository"].get("path")) } - desc["bootstrap"] = local_bootstrap - if "local_bootstrap" in desc: - del desc["local_bootstrap"] + desc["bootstrap"] = pkg_bootstrap + if "pkg_bootstrap" in desc: + del desc["pkg_bootstrap"] # For repos that we didn't change to local, make file roots point # to the original version, so that, in particular, the original |