From: Roger Meier Date: Thu, 7 Aug 2014 14:19:58 +0000 (+0200) Subject: tools/genboardscfg.py: no exception if columns undetectable X-Git-Tag: v2014.10-rc2~102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b12b7a1931eca1ddc001531b3525d2e97b0fa82;p=platform%2Fkernel%2Fu-boot.git tools/genboardscfg.py: no exception if columns undetectable The existing terminalsize detection raised an exception on build server. Just removes the exception. This also deactivates the progress indicator. Remove a trainling whitespace. Signed-off-by: Roger Meier CC: Masahiro Yamada CC: Tom Rini --- diff --git a/tools/genboardscfg.py b/tools/genboardscfg.py index ffef238..e92e4f8 100755 --- a/tools/genboardscfg.py +++ b/tools/genboardscfg.py @@ -58,8 +58,6 @@ def get_terminal_columns(): try: ret = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, arg) except IOError as exception: - if exception.errno != errno.ENOTTY: - raise # If 'Inappropriate ioctl for device' error occurs, # stdout is probably redirected. Return 0. return 0 @@ -402,7 +400,7 @@ def __gen_boards_cfg(jobs): jobs: The number of jobs to run simultaneously Note: - The incomplete boards.cfg is left over when an error (including + The incomplete boards.cfg is left over when an error (including the termination by the keyboard interrupt) occurs on the halfway. """ check_top_directory()