diff options
author | Ricardo Salveti <ricardo@foundries.io> | 2022-04-14 16:42:59 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-15 09:41:19 +0100 |
commit | c212b0f3b542efa19f15782421196b7f4b64b0b9 (patch) | |
tree | 21616365dd75d18c7739267a0037a7bb820374ce | |
parent | 2ab60c7be124d928d304ab1fb73f0dbff29964ae (diff) | |
download | bitbake-c212b0f3b542efa19f15782421196b7f4b64b0b9.tar.gz |
fetch2/crate: fix logger.debug lineyocto-4.02022-04-kirkstone2.0.0
logger.debug was giving an integer value (2) as event message, causing
knotty to crash when running with debug enabled.
bitbake/lib/bb/ui/knotty.py", line 685, in main
event.msg = taskinfo['title'] + ': ' + event.msg
TypeError: can only concatenate str (not "int") to str
Same issue also happens in the original code that was taken from
oe-core (openembedded-core/meta/lib/crate.py honister) / meta-rust.
Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/fetch2/crate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/crate.py b/lib/bb/fetch2/crate.py index f7e2354af..aac1221c8 100644 --- a/lib/bb/fetch2/crate.py +++ b/lib/bb/fetch2/crate.py @@ -72,7 +72,7 @@ class Crate(Wget): ud.parm['downloadfilename'] = "%s-%s.crate" % (name, version) ud.parm['name'] = name - logger.debug(2, "Fetching %s to %s" % (ud.url, ud.parm['downloadfilename'])) + logger.debug("Fetching %s to %s" % (ud.url, ud.parm['downloadfilename'])) def unpack(self, ud, rootdir, d): """ |