()
| 251 | return True |
| 252 | |
| 253 | def 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 | |
| 262 | def InstallPackages(Packages): |
| 263 | print("Installing packages: {}".format(Packages)) |
no test coverage detected