diff options
| author | Sujith H <sujith.h@gmail.com> | 2016-06-24 16:25:53 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-08 09:57:27 +0100 |
| commit | f433664fa042eb8a401fd50472813dc88fd80cde (patch) | |
| tree | d75a9a93a84cc60b83f424a4e90a8cb317f0f775 | |
| parent | b30125166836f93f24bd20ed09547cd54db5ed58 (diff) | |
| download | poky-f433664fa042eb8a401fd50472813dc88fd80cde.tar.gz | |
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>
| -rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 28ff67b76f..c40273c8ba 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
| @@ -1533,11 +1533,16 @@ if True: | |||
| 1533 | def xhr_configvaredit(request, pid): | 1533 | def xhr_configvaredit(request, pid): |
| 1534 | try: | 1534 | try: |
| 1535 | prj = Project.objects.get(id = pid) | 1535 | prj = Project.objects.get(id = pid) |
| 1536 | # There are cases where user can add variables which hold values | ||
| 1537 | # like http://, file:/// etc. In such case a simple split(":") | ||
| 1538 | # would fail. One example is SSTATE_MIRRORS variable. So we use | ||
| 1539 | # max_split var to handle them. | ||
| 1540 | max_split = 1 | ||
| 1536 | # add conf variables | 1541 | # add conf variables |
| 1537 | if 'configvarAdd' in request.POST: | 1542 | if 'configvarAdd' in request.POST: |
| 1538 | t=request.POST['configvarAdd'].strip() | 1543 | t=request.POST['configvarAdd'].strip() |
| 1539 | if ":" in t: | 1544 | if ":" in t: |
| 1540 | variable, value = t.split(":") | 1545 | variable, value = t.split(":", max_split) |
| 1541 | else: | 1546 | else: |
| 1542 | variable = t | 1547 | variable = t |
| 1543 | value = "" | 1548 | value = "" |
| @@ -1547,7 +1552,7 @@ if True: | |||
| 1547 | if 'configvarChange' in request.POST: | 1552 | if 'configvarChange' in request.POST: |
| 1548 | t=request.POST['configvarChange'].strip() | 1553 | t=request.POST['configvarChange'].strip() |
| 1549 | if ":" in t: | 1554 | if ":" in t: |
| 1550 | variable, value = t.split(":") | 1555 | variable, value = t.split(":", max_split) |
| 1551 | else: | 1556 | else: |
| 1552 | variable = t | 1557 | variable = t |
| 1553 | value = "" | 1558 | value = "" |
| @@ -2210,7 +2215,7 @@ if True: | |||
| 2210 | vars_blacklist = { | 2215 | vars_blacklist = { |
| 2211 | 'PARALLEL_MAKE','BB_NUMBER_THREADS', | 2216 | 'PARALLEL_MAKE','BB_NUMBER_THREADS', |
| 2212 | 'BB_DISKMON_DIRS','BB_NUMBER_THREADS','CVS_PROXY_HOST','CVS_PROXY_PORT', | 2217 | 'BB_DISKMON_DIRS','BB_NUMBER_THREADS','CVS_PROXY_HOST','CVS_PROXY_PORT', |
| 2213 | 'PARALLEL_MAKE','SSTATE_MIRRORS','TMPDIR', | 2218 | 'PARALLEL_MAKE','TMPDIR', |
| 2214 | 'all_proxy','ftp_proxy','http_proxy ','https_proxy' | 2219 | 'all_proxy','ftp_proxy','http_proxy ','https_proxy' |
| 2215 | } | 2220 | } |
| 2216 | 2221 | ||
