diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templatetags/projecttags.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templatetags/projecttags.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py index 1d680365ad..119311db93 100644 --- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py +++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py | |||
@@ -297,3 +297,11 @@ def cut_path_prefix(fullpath, prefixes): | |||
297 | if fullpath.startswith(prefix): | 297 | if fullpath.startswith(prefix): |
298 | return relpath(fullpath, prefix) | 298 | return relpath(fullpath, prefix) |
299 | return fullpath | 299 | return fullpath |
300 | |||
301 | |||
302 | @register.filter | ||
303 | def for_target(package_dependencies, target): | ||
304 | """ filter the dependencies to be displayed by the supplied target | ||
305 | if no dependences are found for the target then return the predicted | ||
306 | dependences""" | ||
307 | return package_dependencies.for_target_or_none(target) | ||