W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > June 2005

Re: delta.py return codes

From: EspeonEefi <eefi@MIT.EDU>
Date: Mon, 13 Jun 2005 16:07:09 -0400
To: public-cwm-bugs@w3.org
Message-Id: <1118693229.6503.13.camel@localhost.localdomain>

Re: http://lists.w3.org/Archives/Public/public-cwm-bugs/2005Feb/0000

The following patch to delta.py I think does the trick, or at least does
as
http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Invoking%20diff says diff should act as far as exit codes go.

espeoneefi@ceruleancity:~/programming/cwm/2000/10/swap$ cvs diff
delta.py
Index: delta.py
===================================================================
RCS file: /sources/public/2000/10/swap/delta.py,v
retrieving revision 1.5
diff -r1.5 delta.py
527c527,531
<     sys.exit(0)   # didn't crash
---
> #    sys.exit(0)   # didn't crash
>     if delta.contains():      # Any statements in delta at all?
>       sys.exit(1)
>     else:
>       sys.exit(0)
Received on Monday, 13 June 2005 20:07:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:59 GMT