diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-02-06 15:32:18 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-10 23:07:48 +0000 |
commit | d81e5141c10a97bf5764892f9b20933b751c1da3 (patch) | |
tree | 64a82acb15fe06a8a23e9618ff6a8eb18f604513 /bitbake/lib/toaster/toastergui/views.py | |
parent | da8110a86ad8b57b8c41873d40aeac346ee66b88 (diff) | |
download | poky-d81e5141c10a97bf5764892f9b20933b751c1da3.tar.gz |
bitbake: toaster: display Toaster mode and version in debug mode
This patch displays the current running mode and checked-out git branch
as Toaster version when running in debug mode.
(Bitbake rev: 93e4f8c44273f4657c5be4c00b61db12aa875e31)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index b67a6767b3..4b770ff5db 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -1709,10 +1709,12 @@ if toastermain.settings.MANAGED: | |||
1709 | 1709 | ||
1710 | # the context processor that supplies data used across all the pages | 1710 | # the context processor that supplies data used across all the pages |
1711 | def managedcontextprocessor(request): | 1711 | def managedcontextprocessor(request): |
1712 | import subprocess | ||
1712 | ret = { | 1713 | ret = { |
1713 | "projects": Project.objects.all(), | 1714 | "projects": Project.objects.all(), |
1714 | "MANAGED" : toastermain.settings.MANAGED, | 1715 | "MANAGED" : toastermain.settings.MANAGED, |
1715 | "DEBUG" : toastermain.settings.DEBUG | 1716 | "DEBUG" : toastermain.settings.DEBUG, |
1717 | "TOASTER_VERSION": toastermain.settings.TOASTER_VERSION, | ||
1716 | } | 1718 | } |
1717 | if 'project_id' in request.session: | 1719 | if 'project_id' in request.session: |
1718 | try: | 1720 | try: |
@@ -3057,7 +3059,9 @@ else: | |||
3057 | return { | 3059 | return { |
3058 | "projects": [], | 3060 | "projects": [], |
3059 | "MANAGED" : toastermain.settings.MANAGED, | 3061 | "MANAGED" : toastermain.settings.MANAGED, |
3060 | "DEBUG" : toastermain.settings.DEBUG | 3062 | "DEBUG" : toastermain.settings.DEBUG, |
3063 | "TOASTER_VERSION": toastermain.settings.TOASTER_VERSION, | ||
3064 | |||
3061 | } | 3065 | } |
3062 | 3066 | ||
3063 | 3067 | ||