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

Merge pull request #1217 from lethliel/fix_1216_variable_name

use correct variable prj instead of project
This commit is contained in:
Daniel Mach 2023-01-20 16:13:21 +01:00 committed by GitHub
commit 5f69ad102a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View 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

View File

@ -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. " \