shared-repo-unpack: suppressing exception, returning exit code

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@geontech.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Thomas Goodwin 2019-08-01 14:37:33 -04:00 committed by Richard Purdie
parent 43c2a3acc3
commit 2aeb77f3f2

View File

@ -58,4 +58,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])
try:
subprocess.check_call([scriptsdir + "/layer-config", args.abworkdir, args.target])
except subprocess.CalledProcessError as e:
sys.exit(e.returncode)