diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2012-09-26 16:11:41 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-27 16:38:00 +0100 |
commit | 53d5d542cd0197ca67c5f90a57808af2f19ff56d (patch) | |
tree | 1fb6446d4b01ba84ee6e3f27ed63e6243834a587 /lib | |
parent | 9cdfaa17309d368c3bbae0f1cce0ad875d340e83 (diff) | |
download | bitbake-53d5d542cd0197ca67c5f90a57808af2f19ff56d.tar.gz |
hob/builddetailspage: change branch field
When a user makes a build from a tarball, it shows fatal error in branch field.
Now it not complains as a fatal error. It is a normal message.
[YOCTO #3114]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/bb/ui/crumbs/builddetailspage.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/ui/crumbs/builddetailspage.py b/lib/bb/ui/crumbs/builddetailspage.py index 55a851fee..50073c1fe 100755 --- a/lib/bb/ui/crumbs/builddetailspage.py +++ b/lib/bb/ui/crumbs/builddetailspage.py @@ -99,6 +99,8 @@ class BuildConfigurationTreeView(gtk.TreeView): import os, os.path if os.path.exists(path): branch = bb.process.run('cd %s; git branch | grep "^* " | tr -d "* "' % path)[0] + if branch.startswith("fatal:"): + branch = "(unknown)" if branch: branch = branch.strip('\n') vars.append(self.set_vars("Branch:", branch)) |