mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +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
a24fcb2c90
commit
af1d21ce3b
@ -452,7 +452,8 @@ def apt_hold_freedombox():
|
|||||||
|
|
||||||
def apt_unhold_freedombox():
|
def apt_unhold_freedombox():
|
||||||
"""Remove any hold on freedombox package, and clear flag."""
|
"""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():
|
if apt_hold_flag.exists():
|
||||||
apt_hold_flag.unlink()
|
apt_hold_flag.unlink()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user