bitbake: 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]

(Bitbake rev: 5207abdf58019271bf92bff4bcce3911b8691508)

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>
This commit is contained in:
Michael Wood 2016-01-08 11:26:19 +00:00 committed by Richard Purdie
parent dff7a277e3
commit 7b905caf60
1 changed files with 1 additions and 1 deletions

View File

@ -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,
}
}