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 <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2021-07-04 20:37:32 -04:00
parent 39d411be5b
commit e5c94db620
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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()