1
0
forked from suse-edge/Factory

delete_package.py: Fix command to add message

Without this it launches an editor to interactively specify the
message which doesn't seem to work from inside the python script
This commit is contained in:
Steven Hardy 2024-11-13 14:05:38 +00:00
parent fc9325ccf9
commit 784cd801cd
Signed by untrusted user: steven.hardy
GPG Key ID: 44E1F7EC6AC42B8E

View File

@ -21,7 +21,7 @@ def delete_package_from_workflow(name: str):
def delete_package_from_project(name: str):
p = subprocess.run(["osc", "rdelete", PROJECT, name], stdout=subprocess.PIPE)
p = subprocess.run(["osc", "rdelete", PROJECT, name, "-m \"Deleted via delete_package.py\"" ], stdout=subprocess.PIPE)
print(p.stdout)
print(p.stderr)
p.check_returncode()