From 08482a1546f3c79873e5f3460540fa70a563af07 Mon Sep 17 00:00:00 2001 From: Raelon Masters Date: Sat, 9 May 2020 21:21:53 -0400 Subject: [PATCH] Changed call to run --- preinstall | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/preinstall b/preinstall index 73e4441..c1703c8 100755 --- a/preinstall +++ b/preinstall @@ -1,6 +1,6 @@ #!python import os -from subprocess import call +from subprocess import run class RequiredPackages: @@ -10,7 +10,6 @@ class RequiredPackages: self.locate() def locate(self): - breakpoint() for bin in self.required: if os.path.isfile(bin[1]): continue @@ -25,8 +24,9 @@ packages, required_packages = "", RequiredPackages(package_list) for package in required_packages.to_be_installed: packages = packages + package + " " try: - ret = call("sudo pacman -S %s") % packages + breakpoint() + ret = run("sudo pacman -S %s") % packages print(ret) except Exception as e: - ret = call("pacman -S %s") % packages + ret = run("pacman -S %s") % packages print(ret)