Created
July 1, 2012 15:24
-
-
Save Flow86/3028736 to your computer and use it in GitHub Desktop.
fix exit code of mcp recompile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- runtime/commands.py.bak 2012-04-03 17:04:50.927862565 +0200 | |
+++ runtime/commands.py 2012-04-03 17:05:01.287741310 +0200 | |
@@ -1011,6 +1011,7 @@ | |
self.logger.warning(line) | |
self.logger.warning('==================') | |
self.logger.warning('') | |
+ raise | |
def recompile(self, side): | |
"""Recompile the sources and produce the final bins""" | |
--- runtime/recompile.py.bak 2012-04-03 18:13:45.709839421 +0200 | |
+++ runtime/recompile.py 2012-04-03 18:14:04.849622315 +0200 | |
@@ -25,14 +25,8 @@ | |
try: | |
commands = Commands(conffile, verify=True) | |
- try: | |
- recompile_side(commands, CLIENT) | |
- except CalledProcessError: | |
- pass | |
- try: | |
- recompile_side(commands, SERVER) | |
- except CalledProcessError: | |
- pass | |
+ recompile_side(commands, CLIENT) | |
+ recompile_side(commands, SERVER) | |
except Exception: # pylint: disable-msg=W0703 | |
logging.exception('FATAL ERROR') | |
sys.exit(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment