[XML-SIG] [ pyxml-Patches-851136 ] Wrong exit status from xvcmd.py

SourceForge.net noreply at sourceforge.net
Sat Nov 29 08:10:23 EST 2003


Patches item #851136, was opened at 2003-11-29 14:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=306473&aid=851136&group_id=6473

Category: xmlproc
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Per Cederqvist (ceder)
Assigned to: Lars Marius Garshol (larsga)
Summary: Wrong exit status from xvcmd.py

Initial Comment:
The demo/xmlproc/xvcmd.py program is a very useful
utility. It has one flaw: the exit status is always 0,
even when it finds an error in a document.  The
enclosed patch changes the exit status to 1 if at least
one warning was produced, and 2 if at least one error
was produced. This makes it possible to run xvcmd.py
from make to validate the input first, and then process
it using other non-validating XML-processing software.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=306473&aid=851136&group_id=6473



More information about the XML-SIG mailing list