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:
parent
506e1fa97e
commit
03b1db05fb
@ -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)
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user