From 16011461a11c3408a81983b5f719e5e9da9c7ff6 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Sat, 16 Oct 2010 22:32:06 -0700 Subject: utils, oe.utils: add 'uniq' function Ignore duplicates in an iterable. Signed-off-by: Chris Larson --- classes/utils.bbclass | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'classes') 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) -- cgit 1.2.3-korg