summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-02-05 12:38:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 13:29:22 +0000
commit5e14a8f2fe1b9a051d78a629c844362d1214ef5e (patch)
tree67a7fb52c34cbb9136200e24cc60a955d31ff44d
parent749f5a6f1fd0ad934d9812d7e73e00cb4748eef3 (diff)
downloadpoky-5e14a8f2fe1b9a051d78a629c844362d1214ef5e.tar.gz
bitbake: toaster: xhr_customrecipe_packages Add dependencies to included packages
Add the dependencies of packages which are added to the CustomImageRecipe. Currently just handle the first tier of dependencies as this is what we show in the UI. (Bitbake rev: 5c44609a9bf9fb23241b7dd7c58b08901d75008d) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 851e962c05..30ec39c24f 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -2637,6 +2637,18 @@ if True:
2637 2637
2638 else: 2638 else:
2639 recipe.appends_set.add(package) 2639 recipe.appends_set.add(package)
2640 # Add the dependencies we think will be added to the recipe
2641 # as a result of appending this package.
2642 # TODO this should recurse down the entire deps tree
2643 for dep in package.package_dependencies_source.all_depends():
2644 try:
2645 cust_package = CustomImagePackage.objects.get(
2646 name=dep.depends_on.name)
2647
2648 recipe.includes_set.add(cust_package)
2649 except:
2650 logger.warning("Could not add package's suggested"
2651 "dependencies to the list")
2640 2652
2641 return {"error": "ok"} 2653 return {"error": "ok"}
2642 2654