mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
bitbake: toaster: add 'nobuild' option to Toaster
Add a 'nobuild' option for starting Toaster without the project and hosted builds support. This allows a Toaster host to provide local build statistics without opening the host to external users building projects. [YOCTO #12315] (Bitbake rev: 2d14d6004b6add5ce07295fff1144ade2e54e1c9) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0d9914721a
commit
299e8ff1f7
@@ -41,6 +41,7 @@ import types
|
||||
import json
|
||||
import collections
|
||||
import re
|
||||
import os
|
||||
|
||||
from toastergui.tablefilter import TableFilterMap
|
||||
|
||||
@@ -86,6 +87,9 @@ class ToasterTable(TemplateView):
|
||||
context['table_name'] = type(self).__name__.lower()
|
||||
context['empty_state'] = self.empty_state
|
||||
|
||||
# global variables
|
||||
context['project_enable'] = ('1' == os.environ.get('TOASTER_BUILDSERVER'))
|
||||
|
||||
return context
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user