bitbake: cooker: Remove pointless repeated import

(Bitbake rev: e01914a8eaa97a410cb5fe9480f2d96bb6553342)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2013-05-10 14:54:46 +00:00
parent 06aaf0d0c9
commit d8cf6e956f
1 changed files with 1 additions and 3 deletions

View File

@ -1431,14 +1431,12 @@ class CookerCollectFiles(object):
def find_bbfiles(self, path):
"""Find all the .bb and .bbappend files in a directory"""
from os.path import join
found = []
for dir, dirs, files in os.walk(path):
for ignored in ('SCCS', 'CVS', '.svn'):
if ignored in dirs:
dirs.remove(ignored)
found += [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') or f.endswith('.bbappend'))]
return found