summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/ncurses.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-09 14:05:22 -0500
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:47 +0000
commitc8d2dad04960746d38d28bb2c5aba8363534541a (patch)
tree1871652c0d8d52ad23d216db0da03392b276c11d /bitbake/lib/bb/ui/ncurses.py
parent72c6953488149f1c1fe93a1191f5aa88e6f128de (diff)
downloadpoky-c8d2dad04960746d38d28bb2c5aba8363534541a.tar.gz
Rename the ui 'init' method to 'main'
As these may run the UI in a blocking fashion and then return the exit code, 'init' was an inappropriate name, and 'main' is more appropriate. (Bitbake rev: 4d081a0ed759bd526ab01849d650bd9e8d80ddd1) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/ui/ncurses.py')
-rw-r--r--bitbake/lib/bb/ui/ncurses.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/ncurses.py b/bitbake/lib/bb/ui/ncurses.py
index 3fed4c58a8..3bc8373964 100644
--- a/bitbake/lib/bb/ui/ncurses.py
+++ b/bitbake/lib/bb/ui/ncurses.py
@@ -324,7 +324,7 @@ class NCursesUI:
324 shutdown = shutdown + 1 324 shutdown = shutdown + 1
325 pass 325 pass
326 326
327def init(server, eventHandler): 327def main(server, eventHandler):
328 if not os.isatty(sys.stdout.fileno()): 328 if not os.isatty(sys.stdout.fileno()):
329 print("FATAL: Unable to run 'ncurses' UI without a TTY.") 329 print("FATAL: Unable to run 'ncurses' UI without a TTY.")
330 return 330 return