diff --git a/TODO b/TODO index fcf8943..f8201b9 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,6 @@ TODO: Bugs -* Directory where bitbake-cookerdaemon.log is placed isn't right (meta dir) -* bitbake-cookerdaemon.log should be cleared out every time * Duplication of first maintainer when editing to add a second? * Remote patches in SRC_URI trigger errors * We're wasting time gathering layer info at the start for layers that have not changed diff --git a/layerindex/recipeparse.py b/layerindex/recipeparse.py index bc8a19e..e7b4878 100644 --- a/layerindex/recipeparse.py +++ b/layerindex/recipeparse.py @@ -70,6 +70,11 @@ def init_parser(settings, branch, bitbakepath, enable_tracking=False, nocheckout tempdir = tempfile.mkdtemp(dir=settings.TEMP_BASE_DIR) saved_cwd = os.getcwd() os.chdir(tempdir) + # We need to create a dummy bblayers.conf to avoid bitbake-cookerdaemon.log being created in /meta/ + # (see findTopdir() in bitbake/lib/bb/cookerdata.py) + os.mkdir(os.path.join(tempdir, 'conf')) + with open(os.path.join(tempdir, 'conf', 'bblayers.conf'), 'w') as f: + pass if logger: tinfoil = utils.setup_tinfoil(bitbakepath, enable_tracking, loglevel=logger.getEffectiveLevel())