Patchwork [bitbake-devel] cooker: tweak CookerCollectFiles::find_bbfiles

login
register
mail settings
Submitter Bernhard Reutner-Fischer
Date Aug. 22, 2014, 11:45 a.m.
Message ID <1408707911-7175-1-git-send-email-rep.dot.nop@gmail.com>
Download mbox | patch
Permalink /patch/78823/
State New
Headers show

Comments

Bernhard Reutner-Fischer - Aug. 22, 2014, 11:45 a.m.
since python-2.5 string.endswith() takes a tuple

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
---
 lib/bb/cooker.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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