summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbrian avery <brian.avery@intel.com>2017-02-07 12:36:12 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-13 02:47:40 -0800
commit2c48168a86309c0cf2be793e7409a78ba21fca14 (patch)
tree1ec6fe3117eda6d93db2878d720bf2c33be7e8ee /lib
parent1f0eac0a172a4fbe1799675f2c3ce989743bd862 (diff)
downloadbitbake-contrib-2c48168a86309c0cf2be793e7409a78ba21fca14.tar.gz
toaster: move sqlite database to TOASTER_DIR
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 <brian.avery@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/toaster/toastermain/settings.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/toaster/toastermain/settings.py b/lib/toaster/toastermain/settings.py
index aec9dbb92..1fd649c08 100644
--- a/lib/toaster/toastermain/settings.py
+++ b/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': {