diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2015-02-24 17:20:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-24 23:35:44 +0000 |
commit | 1e0e700f4b52465ee0afd5b67222785b9a1a0055 (patch) | |
tree | ad61b8bd874c9aab76b87aaeb5eac4c717942ad6 /bitbake/lib/toaster/toastermain | |
parent | 4742ae94a91028f7128b862fdb6ec80123749859 (diff) | |
download | poky-1e0e700f4b52465ee0afd5b67222785b9a1a0055.tar.gz |
bitbake: toasterui: style the Toaster version information
When debugging is turned on, we show some Toaster version
information in the top bar. Present it so that it can
be easily copied and pasted.
(Bitbake rev: 5de46fabe9ab1e525048353c2ecd8846ffefc760)
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastermain')
-rw-r--r-- | bitbake/lib/toaster/toastermain/settings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastermain/settings.py b/bitbake/lib/toaster/toastermain/settings.py index a7304fa167..80f26e0ce6 100644 --- a/bitbake/lib/toaster/toastermain/settings.py +++ b/bitbake/lib/toaster/toastermain/settings.py | |||
@@ -232,8 +232,8 @@ from os.path import dirname as DN | |||
232 | SITE_ROOT=DN(DN(os.path.abspath(__file__))) | 232 | SITE_ROOT=DN(DN(os.path.abspath(__file__))) |
233 | 233 | ||
234 | import subprocess | 234 | import subprocess |
235 | TOASTER_VERSION = subprocess.Popen('git branch | grep "^* " | tr -d "* "', cwd = SITE_ROOT, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0] | 235 | TOASTER_BRANCH = subprocess.Popen('git branch | grep "^* " | tr -d "* "', cwd = SITE_ROOT, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0] |
236 | TOASTER_VERSION += " " + subprocess.Popen('git rev-parse HEAD ', cwd = SITE_ROOT, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0] | 236 | TOASTER_REVISION = subprocess.Popen('git rev-parse HEAD ', cwd = SITE_ROOT, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0] |
237 | 237 | ||
238 | ROOT_URLCONF = 'toastermain.urls' | 238 | ROOT_URLCONF = 'toastermain.urls' |
239 | 239 | ||