Skip to contentSkip to conversation

cooker: tweak CookerCollectFiles::find_bbfiles

PATCH New Bernhard Reutner-Fischer 1 participant 1 message Aug 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cooker: tweak CookerCollectFiles::find_bbfiles

since python-2.5 string.endswith() takes a tuple

---
 lib/bb/cooker.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/cooker.py +1 -1
index 2c7788e..f463603 100644
@@ -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