From c4ce4a8e7575dada4621abc1d47d73fe87f38913 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 19 Oct 2019 17:08:28 +0100 Subject: [PATCH] mdwsetup.py: Adjust exit status from `subprocess'. It doesn't return the raw status from `wait', but some kind of inconvenient cooked status. --- mdwsetup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdwsetup.py b/mdwsetup.py index 6acbdb6..dfa217e 100644 --- a/mdwsetup.py +++ b/mdwsetup.py @@ -181,7 +181,7 @@ class Generate (BaseGenFile): temp = me.target + '.new' with open(temp, 'w') as ft: rc = SUB.call([SYS.executable, me.sources[0]], stdout = ft) - if rc != 0: raise SubprocessFailure, (me.sources[0], rc) + if rc != 0: raise SubprocessFailure, (me.sources[0], rc << 8) OS.rename(temp, me.target) ## Backward compatibility. -- 2.11.0