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 /bitbake/lib/bb/cooker.py | |
parent | 51e54ed8a9c2cd5b2cb319ebb7cf257e85cbdc55 (diff) | |
download | 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>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-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 da598c9330..85761e07c4 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1419,14 +1419,14 @@ class CookerCollectFiles(object): | |||
1419 | return pri | 1419 | return pri |
1420 | return 0 | 1420 | return 0 |
1421 | 1421 | ||
1422 | def get_bbfiles(self, path = os.getcwd()): | 1422 | def get_bbfiles(self): |
1423 | """Get list of default .bb files by reading out the current directory""" | 1423 | """Get list of default .bb files by reading out the current directory""" |
1424 | path = os.getcwd() | ||
1424 | contents = os.listdir(path) | 1425 | contents = os.listdir(path) |
1425 | bbfiles = [] | 1426 | bbfiles = [] |
1426 | for f in contents: | 1427 | for f in contents: |
1427 | (root, ext) = os.path.splitext(f) | 1428 | if f.endswith(".bb"): |
1428 | if ext == ".bb": | 1429 | bbfiles.append(os.path.abspath(os.path.join(path, f))) |
1429 | bbfiles.append(os.path.abspath(os.path.join(os.getcwd(), f))) | ||
1430 | return bbfiles | 1430 | return bbfiles |
1431 | 1431 | ||
1432 | def find_bbfiles(self, path): | 1432 | def find_bbfiles(self, path): |