From: Hauke Mehrtens Date: Thu, 24 Jan 2013 20:37:34 +0000 (+0100) Subject: compat: ckmake: make return code 2 is error X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9f0c7145e86d00246363c25d0f063994e17dd995;p=openwrt%2Fstaging%2Fblogic.git compat: ckmake: make return code 2 is error If make returns 2 it should be treat as an error and not as ok. The documentation says 2 is returned if make encountered an error: https://www.gnu.org/software/make/manual/html_node/Running.html Signed-off-by: Hauke Mehrtens --- diff --git a/bin/ckmake b/bin/ckmake index 34bfb09f0225..c821b0a9b80d 100755 --- a/bin/ckmake +++ b/bin/ckmake @@ -62,8 +62,6 @@ def get_processed_rel(i): def get_status_name(status): if (status == 0): return 'OK' - if (status == 2): - return 'OK' elif (status == 130): return 'TERM' elif (status == 1234): @@ -76,8 +74,6 @@ def get_status_name(status): def get_stat_pos(status): if (status == 0): return 34 - if (status == 2): - return 34 elif (status == 130): return 33 elif (status == 1234): @@ -90,8 +86,6 @@ def get_stat_pos(status): def get_status_color(status): if (status == 0): return curses.color_pair(1) - if (status == 2): - return curses.color_pair(1) elif (status == 130): return curses.color_pair(2) elif (status == 1234):