mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
39d411be5b
commit
e5c94db620
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user