[2/2] toaster: move sqlite database to TOASTER_DIR

Submitted by Avery, Brian on Feb. 1, 2017, 7:11 p.m. | Patch ID: 136715

Details

Message ID 2710b9ff990589c6e46388ada8b69165f5d8dd72.1485975972.git.brian.avery@intel.com
State Superseded
Headers show

Commit Message

Avery, Brian Feb. 1, 2017, 7:11 p.m.
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>
---
 bitbake/lib/toaster/toastermain/settings.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

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': {

Comments

Avery, Brian Feb. 8, 2017, 7:34 a.m.
This is a system generated Comment: Patch 136715 was automatically marked as superseded by patch 136843.