bitbake: toaster: remove SSTATE_MIRRORS from blacklists in views
Remove SSTATE_MIRRORS variable from blacklists in views.py This helps user to point mirrors using SSTATE_MIRRORS with toaster. [#YOCTO 9598] (Bitbake rev: c3dd4fb193c80ed9a6dbddf7f6a1eadd0964ac8c) Signed-off-by: Sujith H <sujith.h@gmail.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
b301251668
commit
f433664fa0
|
@ -1533,11 +1533,16 @@ if True:
|
||||||
def xhr_configvaredit(request, pid):
|
def xhr_configvaredit(request, pid):
|
||||||
try:
|
try:
|
||||||
prj = Project.objects.get(id = pid)
|
prj = Project.objects.get(id = pid)
|
||||||
|
# There are cases where user can add variables which hold values
|
||||||
|
# like http://, file:/// etc. In such case a simple split(":")
|
||||||
|
# would fail. One example is SSTATE_MIRRORS variable. So we use
|
||||||
|
# max_split var to handle them.
|
||||||
|
max_split = 1
|
||||||
# add conf variables
|
# add conf variables
|
||||||
if 'configvarAdd' in request.POST:
|
if 'configvarAdd' in request.POST:
|
||||||
t=request.POST['configvarAdd'].strip()
|
t=request.POST['configvarAdd'].strip()
|
||||||
if ":" in t:
|
if ":" in t:
|
||||||
variable, value = t.split(":")
|
variable, value = t.split(":", max_split)
|
||||||
else:
|
else:
|
||||||
variable = t
|
variable = t
|
||||||
value = ""
|
value = ""
|
||||||
|
@ -1547,7 +1552,7 @@ if True:
|
||||||
if 'configvarChange' in request.POST:
|
if 'configvarChange' in request.POST:
|
||||||
t=request.POST['configvarChange'].strip()
|
t=request.POST['configvarChange'].strip()
|
||||||
if ":" in t:
|
if ":" in t:
|
||||||
variable, value = t.split(":")
|
variable, value = t.split(":", max_split)
|
||||||
else:
|
else:
|
||||||
variable = t
|
variable = t
|
||||||
value = ""
|
value = ""
|
||||||
|
@ -2210,7 +2215,7 @@ if True:
|
||||||
vars_blacklist = {
|
vars_blacklist = {
|
||||||
'PARALLEL_MAKE','BB_NUMBER_THREADS',
|
'PARALLEL_MAKE','BB_NUMBER_THREADS',
|
||||||
'BB_DISKMON_DIRS','BB_NUMBER_THREADS','CVS_PROXY_HOST','CVS_PROXY_PORT',
|
'BB_DISKMON_DIRS','BB_NUMBER_THREADS','CVS_PROXY_HOST','CVS_PROXY_PORT',
|
||||||
'PARALLEL_MAKE','SSTATE_MIRRORS','TMPDIR',
|
'PARALLEL_MAKE','TMPDIR',
|
||||||
'all_proxy','ftp_proxy','http_proxy ','https_proxy'
|
'all_proxy','ftp_proxy','http_proxy ','https_proxy'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue