Richard Purdie <[email protected]> escreveu no dia terça, 2/11/2021 à(s) 12:36:
> On Tue, 2021-11-02 at 12:26 +0000, Ross Burton wrote: > > repr() results in formatting characters such as extra quotation marks > > which are pointless. > > > > Signed-off-by: Ross Burton <[email protected]> > > --- > > meta/classes/patch.bbclass | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass > > index 8de7025491..079ee33e3c 100644 > > --- a/meta/classes/patch.bbclass > > +++ b/meta/classes/patch.bbclass > > @@ -155,7 +155,7 @@ python patch_do_patch() { > > resolver.Resolve() > > except bb.BBHandledException as e: > > bb.utils.remove(process_tmpdir, True) > > - bb.fatal("Applying patch '%s' on target directory '%s'\n%s" > % (parm['patchname'], patchdir, repr(e).replace("\\n", "\n"))) > Replace the "str(e)" with "repr(e).replace("\\n", "\n")" is a bit ugly, can this be moved to bb.utils or something like that? > + bb.fatal("Applying patch '%s' on target directory '%s'\n%s" > % (parm['patchname'], patchdir, str(e).replace("\\n", "\n"))) > > > > bb.utils.remove(process_tmpdir, True) > > del os.environ['TMPDIR'] > > Full circle: > > > http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=ec6edfc27f2cfa990dd0f8b2bbc6f9472a50a839 > > :( > > (the original issue being that str(e) on exceptions can hide a lot of > useful > info) > > Cheers, > > Richard > > > > > -- Best regards, José Quaresma
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#157871): https://lists.openembedded.org/g/openembedded-core/message/157871 Mute This Topic: https://lists.openembedded.org/mt/86764324/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
