From e5c94db62053c4f9b8b5a320775e76c0de50a993 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 4 Jul 2021 20:37:32 -0400 Subject: [PATCH] action_utils: Don't print when unholding freedombox package Some actions that use this function are expected to output JSON. Any output from apt-mark can interfere with this. Signed-off-by: James Valleroy --- plinth/action_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plinth/action_utils.py b/plinth/action_utils.py index f206ed76d..baba9194b 100644 --- a/plinth/action_utils.py +++ b/plinth/action_utils.py @@ -457,7 +457,8 @@ def apt_hold_freedombox(): def apt_unhold_freedombox(): """Remove any hold on freedombox package, and clear flag.""" - subprocess.check_call(['apt-mark', 'unhold', 'freedombox']) + subprocess.run(['apt-mark', 'unhold', 'freedombox'], + stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) if apt_hold_flag.exists(): apt_hold_flag.unlink()