1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00

use apiurl, not apisrv, in deleteprj and deletepac commands

This commit is contained in:
Dr. Peter Poeml 2007-05-07 17:52:04 +00:00
parent 2c4caa49c0
commit 0ab5e73ed9

View File

@ -298,7 +298,7 @@ class Osc(cmdln.Cmdln):
project = args[0] project = args[0]
package = args[1] package = args[1]
delete_package(conf.config['apisrv'], project, package) delete_package(conf.config['apiurl'], project, package)
def do_deleteprj(self, subcmd, opts, project): def do_deleteprj(self, subcmd, opts, project):
@ -311,10 +311,10 @@ class Osc(cmdln.Cmdln):
${cmd_option_list} ${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.' print >>sys.stderr, 'Project contains packages. It must be empty before deleting it.'
return 1 return 1
delete_project(conf.config['apisrv'], project) delete_project(conf.config['apiurl'], project)
def do_updatepacmetafromspec(self, subcmd, opts, *args): def do_updatepacmetafromspec(self, subcmd, opts, *args):