[PATCH][autobuilder-helper][warrior 10/41] shared-repo-unpack: suppressing exception, returning exit code

Richard Purdie

From: Thomas Goodwin <btgoodwin@...>

The preceeding errors that would be shown should be enough to
identify the problem since it would have been a problem
running bitbake-layers add-layer, indicating a misconfiguration
of config.json.

Signed-off-by: Thomas Goodwin <btgoodwin@...>
Signed-off-by: Richard Purdie <richard.purdie@...>
scripts/shared-repo-unpack | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/shared-repo-unpack b/scripts/shared-repo-unpack
index 92f0ccf..4a2b1c9 100755
--- a/scripts/shared-repo-unpack
+++ b/scripts/shared-repo-unpack
@@ -61,4 +61,7 @@ for repo in sorted(repos.keys()):
if args.publish_dir:
utils.publishrepo(targetsubdir, repo, args.publish_dir)

-subprocess.check_call([scriptsdir + "/layer-config", args.abworkdir, args.target])
+ subprocess.check_call([scriptsdir + "/layer-config", args.abworkdir, args.target])
+except subprocess.CalledProcessError as e:
+ sys.exit(e.returncode)

Join yocto@lists.yoctoproject.org to automatically receive all group messages.