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

Function InstallPackages

Scripts/InstallFEX.py:262–279  ·  view source on GitHub ↗
(Packages)

Source from the content-addressed store, hash-verified

260 return PackagesToInstall
261
262def InstallPackages(Packages):
263 print("Installing packages: {}".format(Packages))
264
265 DidInstall = False
266 try:
267 CmdResult = subprocess.call(["sudo", "apt-get", "-y", "install"] + Packages)
268 DidInstall = CmdResult == 0
269 except KeyboardInterrupt:
270 print ("Keyboard interrupt")
271 DidInstall = False
272 pass
273
274 if DidInstall:
275 print("Packages installed")
276 else:
277 print("Packages failed to install")
278
279 return DidInstall
280
281_RootFSPath = None
282def GetRootFSPath():

Callers 1

mainFunction · 0.85

Calls 2

printFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected