diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-10-16 22:32:06 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-10-16 22:32:07 -0700 |
commit | 16011461a11c3408a81983b5f719e5e9da9c7ff6 (patch) | |
tree | 5e5fb9951e9ff64833157a36009eca83c1816184 /classes | |
parent | f6fa9298359781393ed2466c45cf42da56068bb1 (diff) | |
download | openembedded-16011461a11c3408a81983b5f719e5e9da9c7ff6.tar.gz |
utils, oe.utils: add 'uniq' function
Ignore duplicates in an iterable.
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes')
-rw-r--r-- | classes/utils.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/classes/utils.bbclass b/classes/utils.bbclass index 81417fca27..2c6a59d543 100644 --- a/classes/utils.bbclass +++ b/classes/utils.bbclass @@ -1,4 +1,8 @@ # For compatibility +def uniq(iterable): + import oe.utils + return oe.utils.uniq(iterable) + def base_path_join(a, *p): return oe.path.join(a, *p) |