* [PATCH] cooker: Fix get_bbfiles()
@ 2013-05-10 15:17 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-05-10 15:17 UTC (permalink / raw)
To: bitbake-devel
Its clear looking at the code the path argument has never been used and doesn't
work. Tweak the function to be a little more readable.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index da598c9..85761e0 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1419,14 +1419,14 @@ class CookerCollectFiles(object):
return pri
return 0
- def get_bbfiles(self, path = os.getcwd()):
+ def get_bbfiles(self):
"""Get list of default .bb files by reading out the current directory"""
+ path = os.getcwd()
contents = os.listdir(path)
bbfiles = []
for f in contents:
- (root, ext) = os.path.splitext(f)
- if ext == ".bb":
- bbfiles.append(os.path.abspath(os.path.join(os.getcwd(), f)))
+ if f.endswith(".bb"):
+ bbfiles.append(os.path.abspath(os.path.join(path, f)))
return bbfiles
def find_bbfiles(self, path):
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-10 15:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-10 15:17 [PATCH] cooker: Fix get_bbfiles() Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.