From 784cd801cdffec4460bb5677a837d72258f079f87d545694c6ceb3a745538394 Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Wed, 13 Nov 2024 14:05:38 +0000 Subject: [PATCH] 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 --- .obs/delete_package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.obs/delete_package.py b/.obs/delete_package.py index 3cfdf6d..763219c 100755 --- a/.obs/delete_package.py +++ b/.obs/delete_package.py @@ -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()