summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastermain/settings.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-01-08 11:26:19 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-08 23:04:07 +0000
commit5207abdf58019271bf92bff4bcce3911b8691508 (patch)
tree54d18785c9e56829fbf312e6d255f770c228ce77 /lib/toaster/toastermain/settings.py
parentc7bb98e2e2111790ded86087b13c8b49462d6b75 (diff)
downloadbitbake-contrib-5207abdf58019271bf92bff4bcce3911b8691508.tar.gz
toaster: settings Add uid to the toaster cache dir
Make the default toaster cache dir unique to the user running toaster. If we have multiple users running toaster we previously got a permission denied exception on saving a cache file. [YOCTO #8782] Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastermain/settings.py')
-rw-r--r--lib/toaster/toastermain/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/toaster/toastermain/settings.py b/lib/toaster/toastermain/settings.py
index b6bdcd8e3..74103f306 100644
--- a/lib/toaster/toastermain/settings.py
+++ b/lib/toaster/toastermain/settings.py
@@ -229,7 +229,7 @@ CACHES = {
# },
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
- 'LOCATION': '/tmp/django-default-cache',
+ 'LOCATION': '/tmp/toaster_cache_%d' % os.getuid(),
'TIMEOUT': 1,
}
}