
Index: ChangeLog from Akim Demaille <akim@epita.fr> * prcs2svn/prcs2svn.py: Make all the info calls similar, without leading spaces in the message. (xsystem, xtee): Fix the handling of ignErr (was reversed). Index: prcs2svn/prcs2svn.py --- prcs2svn/prcs2svn.py (revision 93) +++ prcs2svn/prcs2svn.py (working copy) @@ -108,7 +108,7 @@ cmd += "> /dev/null 2> /dev/null" status = os.system(cmd) if status: - error (int (ignErr), + error (int (not ignErr), cmd + ": returned an error (" + status.__str__ () + ")") def xpopen(cmd, ignErr=False): @@ -129,7 +129,7 @@ # What is this supposed to return? There is nothing in the doc! --akim status = pipe.close () if status: - error (int (ignErr), cmd + ": returned an error (" + status + ")") + error (int (not ignErr), cmd + ": returned an error (" + status + ")") return res def xtee (cmd, ignErr=False):
participants (1)
-
Akim Demaille