From patchwork Tue Feb 7 20:36:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/3] toaster: move sqlite database to TOASTER_DIR From: "Avery, Brian" X-Patchwork-Id: 136843 Message-Id: <8996a2c189102678da5e0364e5ac2b5c17dc033e.1486499681.git.brian.avery@intel.com> To: toaster@yoctoproject.org Cc: brian avery Date: Tue, 7 Feb 2017 12:36:12 -0800 The toaster.sqlite database was located in TOASTER_DIR/build. This meant that if you named your build directory something else (like cow), Toaster would fail to make/find the database. TOASTER_DIR is on the whitelist unlike BUILDDIR and we need to be able to write there anyway given our current layout so this should not disrupt anything. [YOCTO #9992] Signed-off-by: brian avery --- bitbake/lib/toaster/toastermain/settings.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py index aec9dbb..1fd649c 100644 --- a/bitbake/lib/toaster/toastermain/settings.py +++ b/bitbake/lib/toaster/toastermain/settings.py @@ -38,8 +38,7 @@ ADMINS = ( MANAGERS = ADMINS -TOASTER_SQLITE_DEFAULT_DIR = os.path.join(os.environ.get('TOASTER_DIR', ''), - 'build') +TOASTER_SQLITE_DEFAULT_DIR = os.environ.get('TOASTER_DIR') DATABASES = { 'default': {