summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r--bitbake/lib/bb/ui/ncurses.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/ncurses.py b/bitbake/lib/bb/ui/ncurses.py
index 81dcb1998c..3fed4c58a8 100644
--- a/bitbake/lib/bb/ui/ncurses.py
+++ b/bitbake/lib/bb/ui/ncurses.py
@@ -44,6 +44,8 @@
44 44
45""" 45"""
46 46
47from __future__ import division
48
47import os, sys, curses, itertools, time 49import os, sys, curses, itertools, time
48import bb 50import bb
49import xmlrpclib 51import xmlrpclib
@@ -199,8 +201,8 @@ class NCursesUI:
199 201
200 main_left = 0 202 main_left = 0
201 main_top = 0 203 main_top = 0
202 main_height = ( height / 3 * 2 ) 204 main_height = ( height // 3 * 2 )
203 main_width = ( width / 3 ) * 2 205 main_width = ( width // 3 ) * 2
204 clo_left = main_left 206 clo_left = main_left
205 clo_top = main_top + main_height 207 clo_top = main_top + main_height
206 clo_height = height - main_height - main_top - 1 208 clo_height = height - main_height - main_top - 1
@@ -266,7 +268,7 @@ class NCursesUI:
266 mw.appendText("Parsing finished. %d cached, %d parsed, %d skipped, %d masked." 268 mw.appendText("Parsing finished. %d cached, %d parsed, %d skipped, %d masked."
267 % ( event.cached, event.parsed, event.skipped, event.masked )) 269 % ( event.cached, event.parsed, event.skipped, event.masked ))
268 else: 270 else:
269 mw.setStatus("Parsing: %s (%04d/%04d) [%2d %%]" % ( next(parsespin), x, y, x*100/y ) ) 271 mw.setStatus("Parsing: %s (%04d/%04d) [%2d %%]" % ( next(parsespin), x, y, x*100//y ) )
270# if isinstance(event, bb.build.TaskFailed): 272# if isinstance(event, bb.build.TaskFailed):
271# if event.logfile: 273# if event.logfile:
272# if data.getVar("BBINCLUDELOGS", d): 274# if data.getVar("BBINCLUDELOGS", d):