summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/taskdata.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/taskdata.py')
-rw-r--r--bitbake/lib/bb/taskdata.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py
index 8bc447c11c..55cdde553b 100644
--- a/bitbake/lib/bb/taskdata.py
+++ b/bitbake/lib/bb/taskdata.py
@@ -116,6 +116,16 @@ class TaskData:
116 ids.append(self.tasks_lookup[fnid][task]) 116 ids.append(self.tasks_lookup[fnid][task])
117 return ids 117 return ids
118 118
119 def gettask_id_fromfnid(self, fnid, task):
120 """
121 Return an ID number for the task matching fnid and task.
122 """
123 if fnid in self.tasks_lookup:
124 if task in self.tasks_lookup[fnid]:
125 return self.tasks_lookup[fnid][task]
126
127 return None
128
119 def gettask_id(self, fn, task, create = True): 129 def gettask_id(self, fn, task, create = True):
120 """ 130 """
121 Return an ID number for the task matching fn and task. 131 Return an ID number for the task matching fn and task.