From 2e4ba51a5867775e0f4f90872800e9a5cdea3a4d Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Thu, 5 Mar 2020 19:55:10 +0100 Subject: [PATCH] Split up calls into executable and parameterlist --- modules/systemupdate/systemupdate.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/systemupdate/systemupdate.py b/modules/systemupdate/systemupdate.py index 5a91883..f148640 100644 --- a/modules/systemupdate/systemupdate.py +++ b/modules/systemupdate/systemupdate.py @@ -7,9 +7,9 @@ class Systemupdate(AbstractModule): def run(self): print("Running update") - subprocess.call("apt update") - subprocess.call("apt upgrade") - subprocess.call("apt dist-upgrade") - subprocess.call("apt autoremove") - subprocess.call("apt autoclean") + subprocess.call(["apt", "update"]) + subprocess.call(["apt", "upgrade"]) + subprocess.call(["apt", "dist-upgrade"]) + subprocess.call(["apt", "autoremove"]) + subprocess.call(["apt", "autoclean"]) print("All update processes finished, please check output for further details.")