chiark
/
gitweb
/
~mdw
/
runlisp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2b0b2b4
)
mdwsetup.py: Adjust exit status from `subprocess'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 19 Oct 2019 16:08:28 +0000
(17:08 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 8 May 2020 11:27:18 +0000
(12:27 +0100)
It doesn't return the raw status from `wait', but some kind of
inconvenient cooked status.
mdwsetup.py
patch
|
blob
|
blame
|
history
diff --git
a/mdwsetup.py
b/mdwsetup.py
index 6acbdb6f45eeef5d61723d936f01202654fcefe9..dfa217e6f9fe81e8a9e715472ac90b8b72731cd4 100644
(file)
--- 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.