1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-25 11:42:12 +01:00

do not crash on rdiff with 3 arguments (#571483)

This commit is contained in:
Adrian Schröter 2010-01-18 10:25:00 +01:00
parent a7abbb37cd
commit 39ac814169
2 changed files with 2 additions and 2 deletions

View File

@ -1857,7 +1857,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if opts.oldprj or opts.oldpkg:
raise oscerr.WrongArgs('--oldpkg and --oldprj are only valid with two arguments')
old_project = args[0]
old_package = args[1]
new_package = old_package = args[1]
new_project = args[2]
if len(args) == 4:
new_package = args[3]

View File

@ -3465,7 +3465,7 @@ def get_results(apiurl, prj, package, lastbuild=None, repository=[], arch=[]):
rmap['status'] += ': ' + statusnode.find('details').text
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)
return r