1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00

initialize apiurl always

This commit is contained in:
Ludwig Nussel 2009-11-16 09:42:58 +00:00
parent 8f1f94690d
commit 8f4bbb5718

View File

@ -684,6 +684,8 @@ class Osc(cmdln.Cmdln):
if len(args) > 0 and len(args) <= 2 and is_project_dir(os.getcwd()): if len(args) > 0 and len(args) <= 2 and is_project_dir(os.getcwd()):
sys.exit('osc submitrequest from project directory is only working without target specs and for source linked files\n') sys.exit('osc submitrequest from project directory is only working without target specs and for source linked files\n')
apiurl = conf.config['apiurl']
if len(args) == 0 and is_project_dir(os.getcwd()): if len(args) == 0 and is_project_dir(os.getcwd()):
import cgi import cgi
# submit requests for multiple packages are currently handled via multiple requests # submit requests for multiple packages are currently handled via multiple requests