provide an exit code indicating if the check was passed.

2006-11-07  Simon Budig  <simon@gimp.org>

	* tools/defcheck.py: provide an exit code indicating if the
	check was passed.
This commit is contained in:
Simon Budig 2006-11-07 22:21:39 +00:00 committed by Simon Budig
parent a44f83c66c
commit 99c64d888b
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-11-07 Simon Budig <simon@gimp.org>
* tools/defcheck.py: provide an exit code indicating if the
check was passed.
2006-11-07 Sven Neumann <sven@gimp.org>
* app/tools/gimprectangletool.c (gimp_rectangle_tool_oper_update):

View File

@ -27,7 +27,7 @@ Needs the tool "nm" to work.
"""
import commands, glob
import sys, commands, glob
for df in glob.glob ("lib*/*.def"):
directory, rest = df.split ("/")
@ -87,4 +87,8 @@ for df in glob.glob ("lib*/*.def"):
print " the .def-file is not properly sorted (line %d)" % (unsortindex + 2)
print
sys.exit (1)
sys.exit (0)