mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
use apiurl, not apisrv, in deleteprj and deletepac commands
This commit is contained in:
parent
2c4caa49c0
commit
0ab5e73ed9
@ -298,7 +298,7 @@ class Osc(cmdln.Cmdln):
|
||||
project = args[0]
|
||||
package = args[1]
|
||||
|
||||
delete_package(conf.config['apisrv'], project, package)
|
||||
delete_package(conf.config['apiurl'], project, package)
|
||||
|
||||
|
||||
def do_deleteprj(self, subcmd, opts, project):
|
||||
@ -311,10 +311,10 @@ class Osc(cmdln.Cmdln):
|
||||
${cmd_option_list}
|
||||
"""
|
||||
|
||||
if meta_get_packagelist(conf.config['apisrv'], project) != []:
|
||||
if meta_get_packagelist(conf.config['apiurl'], project) != []:
|
||||
print >>sys.stderr, 'Project contains packages. It must be empty before deleting it.'
|
||||
return 1
|
||||
delete_project(conf.config['apisrv'], project)
|
||||
delete_project(conf.config['apiurl'], project)
|
||||
|
||||
|
||||
def do_updatepacmetafromspec(self, subcmd, opts, *args):
|
||||
|
Loading…
Reference in New Issue
Block a user