diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-10 14:52:47 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-12 08:26:14 +0100 |
commit | 06aaf0d0c9cfba29d05d6b2ff19ce4dc477c4795 (patch) | |
tree | ea60098314e1d4d78028e7cd1f81016f11aa0bbb | |
parent | 51e54ed8a9c2cd5b2cb319ebb7cf257e85cbdc55 (diff) | |
download | ast2050-yocto-poky-06aaf0d0c9cfba29d05d6b2ff19ce4dc477c4795.zip ast2050-yocto-poky-06aaf0d0c9cfba29d05d6b2ff19ce4dc477c4795.tar.gz |
bitbake: cooker: Fix get_bbfiles()
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.
(Bitbake rev: d7047ceaf29b870ade3257e263e010f65aa8bc6e)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/cooker.py | 8 |
1 files changed, 4 insertions, 4 deletions
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): |