From af1d21ce3b1b7daa5c7eb9755302b59a1ece743b 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 216d3c9ff..9d78db755 100644 --- a/plinth/action_utils.py +++ b/plinth/action_utils.py @@ -452,7 +452,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()