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>
This commit is contained in:
Michael Wood
2016-02-05 12:38:21 +00:00
committed by Richard Purdie
parent 749f5a6f1f
commit 5e14a8f2fe

View File

@@ -2637,6 +2637,18 @@ if True:
else:
recipe.appends_set.add(package)
# Add the dependencies we think will be added to the recipe
# as a result of appending this package.
# TODO this should recurse down the entire deps tree
for dep in package.package_dependencies_source.all_depends():
try:
cust_package = CustomImagePackage.objects.get(
name=dep.depends_on.name)
recipe.includes_set.add(cust_package)
except:
logger.warning("Could not add package's suggested"
"dependencies to the list")
return {"error": "ok"}