diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2012-12-03 11:01:19 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-04 18:02:01 +0000 |
commit | e77f0570e8728320d08afa5c37013086632303e8 (patch) | |
tree | 9b6f99635f844e57fcb1a9013e9bb029110359ba /bitbake/lib | |
parent | 4bec4e78502b1d3fbe3c1f95b737c19f15e3c1c1 (diff) | |
download | poky-e77f0570e8728320d08afa5c37013086632303e8.tar.gz |
bitbake: hob: modified how the existence of a variable is checked
(Bitbake rev: 4214ffff2c8a2a1fe66cbade03d2fd9e22a682d2)
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/builddetailspage.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py index 6d8c38bd67..2ecd95d7f6 100755 --- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py | |||
@@ -227,10 +227,9 @@ class BuildDetailsPage (HobPage): | |||
227 | label = gtk.Label() | 227 | label = gtk.Label() |
228 | label.set_alignment(0.0, 0.5) | 228 | label.set_alignment(0.0, 0.5) |
229 | # Ensure variable disk_full is defined | 229 | # Ensure variable disk_full is defined |
230 | try: | 230 | if not hasattr(self.builder, 'disk_full'): |
231 | self.builder.disk_full | ||
232 | except NameError: | ||
233 | self.builder.disk_full = False | 231 | self.builder.disk_full = False |
232 | |||
234 | if self.builder.disk_full: | 233 | if self.builder.disk_full: |
235 | markup = "<span size='medium'>There is no disk space left, so Hob cannot finish building your image. Free up some disk space\n" | 234 | markup = "<span size='medium'>There is no disk space left, so Hob cannot finish building your image. Free up some disk space\n" |
236 | markup += "and restart the build. Check the \"Issues\" tab for more details</span>" | 235 | markup += "and restart the build. Check the \"Issues\" tab for more details</span>" |