MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / CheckPackageInstallStatus

Function CheckPackageInstallStatus

Scripts/InstallFEX.py:253–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251 return True
252
253def CheckPackageInstallStatus():
254 PackagesToInstall = GetPackagesToInstall()
255 for Package in PackagesToInstall[:]:
256 CmdResult = subprocess.call(["dpkg", "-s", Package], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
257 if CmdResult == 0:
258 PackagesToInstall.remove(Package)
259
260 return PackagesToInstall
261
262def InstallPackages(Packages):
263 print("Installing packages: {}".format(Packages))

Callers 1

mainFunction · 0.85

Calls 1

GetPackagesToInstallFunction · 0.85

Tested by

no test coverage detected