1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 22:56:15 +01:00

- let the diff subcommand return 1 if differences were found

This commit is contained in:
Dr. Peter Poeml 2007-03-12 15:46:15 +00:00
parent 506e1fa97e
commit 03b1db05fb

View File

@ -286,6 +286,7 @@ def diff(args):
args = parseargs(args)
pacs = findpacs(args)
difference_found = False
for p in pacs:
if p.todo == []:
for i in p.filenamelist:
@ -300,6 +301,10 @@ def diff(args):
d.append(get_source_file_diff(p.dir, filename, p.rev))
if d:
print ''.join(d)
difference_found = True
if difference_found:
sys.exit(1)