mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
Merge branch 'master' of https://github.com/b1-systems/osc
This commit is contained in:
commit
3f6eaeaff9
@ -3688,6 +3688,9 @@ def get_project_sourceinfo(apiurl, project, nofilename, *packages):
|
|||||||
try:
|
try:
|
||||||
si = show_project_sourceinfo(apiurl, project, nofilename, *packages)
|
si = show_project_sourceinfo(apiurl, project, nofilename, *packages)
|
||||||
except HTTPError, e:
|
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:
|
if e.code != 414:
|
||||||
raise
|
raise
|
||||||
if len(packages) == 1:
|
if len(packages) == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user