Checks what recipes are being built to see which of the alternative and optional dependencies are being used, and returns a list of these.
(self)
| 325 | return result |
| 326 | |
| 327 | def check_recipe_choices(self): |
| 328 | '''Checks what recipes are being built to see which of the alternative |
| 329 | and optional dependencies are being used, |
| 330 | and returns a list of these.''' |
| 331 | recipes = [] |
| 332 | built_recipes = self.ctx.recipe_build_order |
| 333 | for recipe in self.depends: |
| 334 | if isinstance(recipe, (tuple, list)): |
| 335 | for alternative in recipe: |
| 336 | if alternative in built_recipes: |
| 337 | recipes.append(alternative) |
| 338 | break |
| 339 | for recipe in self.opt_depends: |
| 340 | if recipe in built_recipes: |
| 341 | recipes.append(recipe) |
| 342 | return sorted(recipes) |
| 343 | |
| 344 | def get_opt_depends_in_list(self, recipes): |
| 345 | '''Given a list of recipe names, returns those that are also in |
no outgoing calls
no test coverage detected