diff options
author | Andy Voltz <andy.voltz@timesys.com> | 2017-05-18 12:09:11 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-05 09:19:51 +0100 |
commit | 44b3eb65d9d6b2b91af08a5d50ec28f5df50f8f9 (patch) | |
tree | 49d9bdad545c95b8eed952b9f44495226bcd1058 /bitbake | |
parent | bc9c714e8b0cccfc60aea4ad1be3a0666427a401 (diff) | |
download | poky-44b3eb65d9d6b2b91af08a5d50ec28f5df50f8f9.tar.gz |
bitbake: cooker: fix undefined dep in generatePkgDepTreeData
The loop for populating the depends of the tree data should use dep
instead of item.
(Bitbake rev: 37c298b27e3f72b21513124237cfeffb22c0e2f0)
Signed-off-by: Andy Voltz <andy.voltz@timesys.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index bc8574aa1e..8846690a70 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -905,13 +905,13 @@ class BBCooker: | |||
905 | seen_fns.append(taskfn) | 905 | seen_fns.append(taskfn) |
906 | 906 | ||
907 | depend_tree["depends"][pn] = [] | 907 | depend_tree["depends"][pn] = [] |
908 | for item in taskdata[mc].depids[taskfn]: | 908 | for dep in taskdata[mc].depids[taskfn]: |
909 | pn_provider = "" | 909 | pn_provider = "" |
910 | if dep in taskdata[mc].build_targets and taskdata[mc].build_targets[dep]: | 910 | if dep in taskdata[mc].build_targets and taskdata[mc].build_targets[dep]: |
911 | fn_provider = taskdata[mc].build_targets[dep][0] | 911 | fn_provider = taskdata[mc].build_targets[dep][0] |
912 | pn_provider = self.recipecaches[mc].pkg_fn[fn_provider] | 912 | pn_provider = self.recipecaches[mc].pkg_fn[fn_provider] |
913 | else: | 913 | else: |
914 | pn_provider = item | 914 | pn_provider = dep |
915 | pn_provider = self.add_mc_prefix(mc, pn_provider) | 915 | pn_provider = self.add_mc_prefix(mc, pn_provider) |
916 | depend_tree["depends"][pn].append(pn_provider) | 916 | depend_tree["depends"][pn].append(pn_provider) |
917 | 917 | ||