Skip to contentSkip to conversation

build: Add missing parameter to TaskInvalid

PATCH New Richard Purdie 1 participant 1 message Mar 29, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: Add missing parameter to TaskInvalid

Fixes:

File "bitbake/lib/bb/build.py", line 585, in _exec_task
event.fire(TaskInvalid(task, d), d)
TypeError: __init__() missing 1 required positional argument: 'metadata'

---
 lib/bb/build.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/build.py +1 -1
index 65b7fc000d..af60c3d8f5 100644
@@ -582,7 +582,7 @@ def _exec_task(fn, task, d, quieterr):
     running it with its own local metadata, and with some useful variables set.
     """
     if not d.getVarFlag(task, 'task', False):
-        event.fire(TaskInvalid(task, d), d)
+        event.fire(TaskInvalid(task, fn, d), d)
         logger.error("No such task: %s" % task)
         return 1
 
Signature · 1 line
2.32.0