summaryrefslogtreecommitdiffstats
path: root/lib/bb
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-08-22 13:45:11 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-23 11:51:22 +0100
commit86a67a1fd4244da9343dbf14deed1ad0d3003f32 (patch)
tree69612e790755779a0fe7ee00cfbfb8da072d7647 /lib/bb
parent2e80b5d10a5037ed6f0bc227a1f9b42529c87086 (diff)
downloadbitbake-contrib-86a67a1fd4244da9343dbf14deed1ad0d3003f32.tar.gz
bitbake-contrib-86a67a1fd4244da9343dbf14deed1ad0d3003f32.tar.bz2
bitbake-contrib-86a67a1fd4244da9343dbf14deed1ad0d3003f32.zip
cooker: tweak CookerCollectFiles::find_bbfiles
since python-2.5 string.endswith() takes a tuple Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r--lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 2c7788ea04..f463603d5a 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