1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02:00

- fixed UnboundLocalError when creating a submitrequest from a project wc

The error occured if no target project was specified by the user.
This commit is contained in:
Marcus Huewe 2013-02-14 15:36:04 +01:00
parent 55ee5763b0
commit 920028524b

View File

@ -919,6 +919,7 @@ class Osc(cmdln.Cmdln):
u = makeurl(apiurl, ['source', project, p])
f = http_GET(u)
root = ET.parse(f).getroot()
target_project = None
if len(args) == 1:
target_project = args[0]
linkinfo = root.find('linkinfo')