mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06:13 +01:00
Merge pull request #1217 from lethliel/fix_1216_variable_name
use correct variable prj instead of project
This commit is contained in:
commit
5f69ad102a
6
behave/features/rdelete.feature
Normal file
6
behave/features/rdelete.feature
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Feature: `osc rdelete` command
|
||||||
|
|
||||||
|
@destructive
|
||||||
|
Scenario: Run `osc rdelete` to delete a project and mark it with a desctructive tag
|
||||||
|
When I execute osc with args "rdelete -r -f test:factory -m 'cleanup'"
|
||||||
|
Then the exit code is 0
|
@ -6073,7 +6073,7 @@ def delete_package(apiurl: str, prj: str, pac: str, force=False, msg=None):
|
|||||||
|
|
||||||
def delete_project(apiurl: str, prj: str, force=False, msg=None, recursive=False):
|
def delete_project(apiurl: str, prj: str, force=False, msg=None, recursive=False):
|
||||||
if not recursive:
|
if not recursive:
|
||||||
packages = meta_get_packagelist(apiurl, project)
|
packages = meta_get_packagelist(apiurl, prj)
|
||||||
if packages:
|
if packages:
|
||||||
error_msg = \
|
error_msg = \
|
||||||
"Project contains packages. It must be empty before deleting it. " \
|
"Project contains packages. It must be empty before deleting it. " \
|
||||||
|
Loading…
Reference in New Issue
Block a user