From 11f047a408e34c5ba8abd4c1b3146f84bf7aa61d Mon Sep 17 00:00:00 2001 From: Claudius Heine Date: Mon, 31 Jul 2017 09:29:04 +0200 Subject: [PATCH] kas/shell: Prepare complete bitbake configuration before entering shell Before this patch, starting the shell in a clean environment, does not checkout all repository or configures all layers correctly. This patch adds the missing checkout and configuration steps to the shell plugin. Signed-off-by: Claudius Heine --- kas/shell.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/kas/shell.py b/kas/shell.py index 5fd69eb..1f98ee1 100644 --- a/kas/shell.py +++ b/kas/shell.py @@ -27,7 +27,8 @@ import subprocess from kas.libkas import kasplugin from kas.config import load_config -from kas.libcmds import (Macro, Command, SetupProxy, SetupEnviron, SetupHome) +from kas.libcmds import (Macro, Command, SetupDir, SetupProxy, SetupEnviron, + WriteConfig, SetupHome, ReposFetch, ReposCheckout) __license__ = 'MIT' __copyright__ = 'Copyright (c) Siemens AG, 2017' @@ -73,8 +74,13 @@ class Shell: macro = Macro() + macro.add(SetupDir()) macro.add(SetupProxy()) macro.add(SetupEnviron()) + macro.add(ReposFetch()) + macro.add(ReposCheckout()) + macro.add(SetupEnviron()) + macro.add(WriteConfig()) macro.add(SetupHome()) macro.add(ShellCommand(args.command))