Warnings should not increment the exit status

This commit is contained in:
Matt Martz 2015-10-05 11:16:44 -05:00 committed by John Barker
parent 95c9e11cba
commit cf9b22103d

View file

@ -72,7 +72,7 @@ class Validator(object):
if warnings: if warnings:
for warning in self.warnings: for warning in self.warnings:
print('WARNING: %s' % warning) print('WARNING: %s' % warning)
ret.append(1) # ret.append(1) # Don't incrememt exit status for warnings
if self.errors or (warnings and self.warnings): if self.errors or (warnings and self.warnings):
print() print()