diff options
| author | Richard Purdie <richard@openedhand.com> | 2008-05-13 07:53:18 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2008-05-13 07:53:18 +0000 |
| commit | e14d7dcbeea45e2000b9ec3174d24aa90f786adc (patch) | |
| tree | 5d361178fb09e20fd5e2f818efefeda6f44fe931 /bitbake/lib/bb/taskdata.py | |
| parent | 152f14b598655535664e51ac83318d2c60dfa7d4 (diff) | |
| download | poky-e14d7dcbeea45e2000b9ec3174d24aa90f786adc.tar.gz | |
bitbake: Sync with 1.8 branch
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4463 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb/taskdata.py')
| -rw-r--r-- | bitbake/lib/bb/taskdata.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py index 0fb34ad748..566614ee63 100644 --- a/bitbake/lib/bb/taskdata.py +++ b/bitbake/lib/bb/taskdata.py | |||
| @@ -91,6 +91,16 @@ class TaskData: | |||
| 91 | 91 | ||
| 92 | return self.fn_index.index(name) | 92 | return self.fn_index.index(name) |
| 93 | 93 | ||
| 94 | def gettask_ids(self, fnid): | ||
| 95 | """ | ||
| 96 | Return an array of the ID numbers matching a given fnid. | ||
| 97 | """ | ||
| 98 | ids = [] | ||
| 99 | if fnid in self.tasks_lookup: | ||
| 100 | for task in self.tasks_lookup[fnid]: | ||
| 101 | ids.append(self.tasks_lookup[fnid][task]) | ||
| 102 | return ids | ||
| 103 | |||
| 94 | def gettask_id(self, fn, task, create = True): | 104 | def gettask_id(self, fn, task, create = True): |
| 95 | """ | 105 | """ |
| 96 | Return an ID number for the task matching fn and task. | 106 | Return an ID number for the task matching fn and task. |
