mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 06:49:33 +02:00
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>
This commit is contained in:
@@ -1419,14 +1419,14 @@ class CookerCollectFiles(object):
|
|||||||
return pri
|
return pri
|
||||||
return 0
|
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"""
|
"""Get list of default .bb files by reading out the current directory"""
|
||||||
|
path = os.getcwd()
|
||||||
contents = os.listdir(path)
|
contents = os.listdir(path)
|
||||||
bbfiles = []
|
bbfiles = []
|
||||||
for f in contents:
|
for f in contents:
|
||||||
(root, ext) = os.path.splitext(f)
|
if f.endswith(".bb"):
|
||||||
if ext == ".bb":
|
bbfiles.append(os.path.abspath(os.path.join(path, f)))
|
||||||
bbfiles.append(os.path.abspath(os.path.join(os.getcwd(), f)))
|
|
||||||
return bbfiles
|
return bbfiles
|
||||||
|
|
||||||
def find_bbfiles(self, path):
|
def find_bbfiles(self, path):
|
||||||
|
|||||||
Reference in New Issue
Block a user