Divide the SetupRepos command into three parts: init, step and finish Build a macro-based loop with the step part of the function. Rewrite this in build.py and shell.py Signed-off-by: Andreas Reichel <andreas.reichel.ext@siemens.com>