From 5e14a8f2fe1b9a051d78a629c844362d1214ef5e Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 5 Feb 2016 12:38:21 +0000 Subject: 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 Signed-off-by: brian avery Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/views.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bitbake/lib/toaster/toastergui/views.py') 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: 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"} -- cgit v1.2.3-54-g00ecf