| 35 | } |
| 36 | |
| 37 | void APTInstaller::install(const InstallInfo &info) |
| 38 | { |
| 39 | if (!termSrv) |
| 40 | termSrv = dpfGetService(TerminalService); |
| 41 | |
| 42 | QStringList args; |
| 43 | args << "install" |
| 44 | << info.packageList; |
| 45 | |
| 46 | uiController.switchContext(TERMINAL_TAB_TEXT); |
| 47 | termSrv->executeCommand(info.plugin.isEmpty() ? "APTInstall" : info.plugin, "sudo apt", args, "", QStringList()); |
| 48 | } |
nothing calls this directly
no test coverage detected