From 86a67a1fd4244da9343dbf14deed1ad0d3003f32 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 22 Aug 2014 13:45:11 +0200 Subject: cooker: tweak CookerCollectFiles::find_bbfiles since python-2.5 string.endswith() takes a tuple Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Richard Purdie --- lib/bb/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bb') diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 2c7788ea0..f463603d5 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1435,7 +1435,7 @@ class CookerCollectFiles(object): for ignored in ('SCCS', 'CVS', '.svn'): if ignored in dirs: dirs.remove(ignored) - found += [os.path.join(dir, f) for f in files if (f.endswith('.bb') or f.endswith('.bbappend'))] + found += [os.path.join(dir, f) for f in files if (f.endswith(['.bb', '.bbappend']))] return found -- cgit 1.2.3-korg