1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 01:46:13 +01:00
This commit is contained in:
Marcus Huewe 2015-08-06 14:21:39 +02:00
commit 3f6eaeaff9

View File

@ -3688,6 +3688,9 @@ def get_project_sourceinfo(apiurl, project, nofilename, *packages):
try:
si = show_project_sourceinfo(apiurl, project, nofilename, *packages)
except HTTPError, e:
# old API servers do not know the 'nofilename' parameter, so retry without
if e.code == 400 and nofilename:
return get_project_sourceinfo(apiurl, project, False, *packages)
if e.code != 414:
raise
if len(packages) == 1: