toaster: settings Add uid to the toaster cache dir
PATCH 1/1 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 <[email protected]>
--- bitbake/lib/toaster/toastermain/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/toaster/toastermain/settings.py +1 -1
@@ -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, } }
Signature · 1 line
2.5.0
Quoted 4 lines · Michael Wood
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.
Sent to bitbake-devel and merged into toaster-next.
Elliot
Quoted 32 lines
[YOCTO #8782]
Signed-off-by Michael Wood <[email protected]>--- bitbake/lib/toaster/toastermain/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)bitbake/lib/toaster/toastermain/settings.py +1
-1@@ -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, }}--
2.5.0--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster
Signature · 3 lines
Elliot Smith Software Engineer Intel Open Source Technology Centre