PTU5KAS/kas
Peter Hoyes 34983c13ee libcmds: Only checkout "missing" repositories in SetupReposStep
There is a subtle bug in SetupReposStep that occurs when:
 * One or more repositories are reported as "missing" in InitSetupRepos.
 * SetupReposStep checks out the missing repositories.
 * SetupReposStep updates the repo_dict with all repositories in the
   configuration, some of which may only be partially defined and/or
   not checked out.
 * SetupReposStep passes this new, incorrect list of checked out
   repositories to the include handler in the next pass.
 * The include handler attempts to include a file from a partially
   defined repository, likely resulting in a "File not found" error
   because it is assumed to be a local repository.

To fix this, keep track of the repositories that have been checked out
by only adding repositories that have been reported as "missing" to
ctx.config.repo_dict

Now that ctx.config.repo_dict only contains checked out repositories, it
is necessary to check missing repo names against the config dict
instead.

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2022-07-12 09:21:07 +02:00
..
plugins build: Resolve handling of -- separator in the absence of a config file 2022-03-14 12:57:11 +01:00
__init__.py __init__: Better support introspection 2018-12-07 09:56:09 +01:00
__main__.py Drop unnecessary shebang lines 2021-08-30 21:56:49 +02:00
__version__.py Allow "deleting" url/path of repo in override 2022-04-11 18:22:38 +02:00
config.py config: Public interface amendments 2022-07-12 09:20:51 +02:00
configschema.py yml: Move json schema from python dict to standalone json file 2021-10-05 10:28:24 +02:00
context.py context: Add support for relative KAS_WORK/BUILD/REPO_REF_DIR paths 2021-08-18 12:43:09 +02:00
includehandler.py includehandler: Simplify code 2021-10-01 11:16:28 +02:00
kas.py plugins: Invoke setup_parser_common_args explicitly from setup_parser 2021-10-09 15:00:05 +02:00
libcmds.py libcmds: Only checkout "missing" repositories in SetupReposStep 2022-07-12 09:21:07 +02:00
libkas.py libkas: Update BB_ENV_PASSTHROUGH_ADDITIONS with env_vars 2022-02-22 19:17:17 +01:00
repos.py repos: add --whitespace=nowarn to git apply command 2022-05-16 09:12:48 +02:00
schema-kas.json Allow "deleting" url/path of repo in override 2022-04-11 18:22:38 +02:00