mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-25 19:52:12 +01:00
do not crash on rdiff with 3 arguments (#571483)
This commit is contained in:
parent
a7abbb37cd
commit
39ac814169
@ -1857,7 +1857,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
if opts.oldprj or opts.oldpkg:
|
if opts.oldprj or opts.oldpkg:
|
||||||
raise oscerr.WrongArgs('--oldpkg and --oldprj are only valid with two arguments')
|
raise oscerr.WrongArgs('--oldpkg and --oldprj are only valid with two arguments')
|
||||||
old_project = args[0]
|
old_project = args[0]
|
||||||
old_package = args[1]
|
new_package = old_package = args[1]
|
||||||
new_project = args[2]
|
new_project = args[2]
|
||||||
if len(args) == 4:
|
if len(args) == 4:
|
||||||
new_package = args[3]
|
new_package = args[3]
|
||||||
|
@ -3465,7 +3465,7 @@ def get_results(apiurl, prj, package, lastbuild=None, repository=[], arch=[]):
|
|||||||
rmap['status'] += ': ' + statusnode.find('details').text
|
rmap['status'] += ': ' + statusnode.find('details').text
|
||||||
|
|
||||||
if rmap['dirty'] == 'true':
|
if rmap['dirty'] == 'true':
|
||||||
rmap['status'] = 'outdated (was: %s)' % rmap['status']
|
rmap['status'] = 'state is outdated (was: %s)' % rmap['status']
|
||||||
|
|
||||||
r.append(result_line_templ % rmap)
|
r.append(result_line_templ % rmap)
|
||||||
return r
|
return r
|
||||||
|
Loading…
x
Reference in New Issue
Block a user