cooker: tweak CookerCollectFiles::find_bbfiles
PATCH 1/1 cooker: tweak CookerCollectFiles::find_bbfiles
since python-2.5 string.endswith() takes a tuple
Signed-off-by Bernhard Reutner-Fischer <[email protected]>
--- lib/bb/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/cooker.py +1 -1
@@ -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
Signature · 1 line
1.7.10.4