[bitbake-devel] [PATCH] cooker: tweak CookerCollectFiles::find_bbfiles
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Aug 22 11:45:11 UTC 2014
since python-2.5 string.endswith() takes a tuple
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
lib/bb/cooker.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 2c7788e..f463603 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
--
1.7.10.4
More information about the bitbake-devel
mailing list