summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-09 23:33:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-03 11:18:56 +0000
commitcf5c5636d80297ab1cf051cb1de8a4ebe8a73d54 (patch)
tree56bd688adaa53489cf94b7476097982d08cbc311 /meta/classes
parentf81f505f131b6bd83bef6abce26c6e734e55188b (diff)
downloadpoky-cf5c5636d80297ab1cf051cb1de8a4ebe8a73d54.tar.gz
base: Use repr() for printing exceptions
Exceptions print more clearly using repr() instead of str(), fix in fetch and unpack tasks. Drop part of the test which no longer makes sense after this change. (From OE-Core rev: 045124ce7ef7c53a1932848835f93abbe535f157) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit c94816259cc1c09746353ad26ca0c811e0c962c2) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index a3e98d1b50..9ed736b0e1 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -160,7 +160,7 @@ python base_do_fetch() {
160 fetcher = bb.fetch2.Fetch(src_uri, d) 160 fetcher = bb.fetch2.Fetch(src_uri, d)
161 fetcher.download() 161 fetcher.download()
162 except bb.fetch2.BBFetchException as e: 162 except bb.fetch2.BBFetchException as e:
163 bb.fatal(str(e)) 163 bb.fatal("Bitbake Fetcher Error: " + repr(e))
164} 164}
165 165
166addtask unpack after do_fetch 166addtask unpack after do_fetch
@@ -177,7 +177,7 @@ python base_do_unpack() {
177 fetcher = bb.fetch2.Fetch(src_uri, d) 177 fetcher = bb.fetch2.Fetch(src_uri, d)
178 fetcher.unpack(d.getVar('WORKDIR')) 178 fetcher.unpack(d.getVar('WORKDIR'))
179 except bb.fetch2.BBFetchException as e: 179 except bb.fetch2.BBFetchException as e:
180 bb.fatal(str(e)) 180 bb.fatal("Bitbake Fetcher Error: " + repr(e))
181} 181}
182 182
183def get_layers_branch_rev(d): 183def get_layers_branch_rev(d):