summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo@foundries.io>2022-04-14 16:42:59 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-15 17:30:34 +0100
commitaf5cb9d6fedf5efc2e122cc27e29d2009976bdab (patch)
tree73b84b20ab8fddc4f5b9ad0232dbcf4e5e3863b1 /bitbake
parent81b4d8bc6bdc47a731a1f7ed741d7336559a1348 (diff)
downloadpoky-af5cb9d6fedf5efc2e122cc27e29d2009976bdab.tar.gz
bitbake: fetch2/crate: fix logger.debug line
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. (Bitbake rev: c212b0f3b542efa19f15782421196b7f4b64b0b9) Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/crate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/crate.py b/bitbake/lib/bb/fetch2/crate.py
index f7e2354afb..aac1221c87 100644
--- a/bitbake/lib/bb/fetch2/crate.py
+++ b/bitbake/lib/bb/fetch2/crate.py
@@ -72,7 +72,7 @@ class Crate(Wget):
72 ud.parm['downloadfilename'] = "%s-%s.crate" % (name, version) 72 ud.parm['downloadfilename'] = "%s-%s.crate" % (name, version)
73 ud.parm['name'] = name 73 ud.parm['name'] = name
74 74
75 logger.debug(2, "Fetching %s to %s" % (ud.url, ud.parm['downloadfilename'])) 75 logger.debug("Fetching %s to %s" % (ud.url, ud.parm['downloadfilename']))
76 76
77 def unpack(self, ud, rootdir, d): 77 def unpack(self, ud, rootdir, d):
78 """ 78 """