diff --git a/behave/features/rdelete.feature b/behave/features/rdelete.feature new file mode 100644 index 00000000..df26a25f --- /dev/null +++ b/behave/features/rdelete.feature @@ -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 diff --git a/osc/core.py b/osc/core.py index 6a86901b..59d3f4fd 100644 --- a/osc/core.py +++ b/osc/core.py @@ -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): if not recursive: - packages = meta_get_packagelist(apiurl, project) + packages = meta_get_packagelist(apiurl, prj) if packages: error_msg = \ "Project contains packages. It must be empty before deleting it. " \