fix: e645c5e5 参数错误

This commit is contained in:
2022-12-26 20:05:17 +08:00
parent 0544761094
commit d744c1d978
3 changed files with 7 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ void DownloadItem::install(int t)
}
QProcess isInstall;
isInstall.start("dpkg -s " + pkgName, QStringList());
isInstall.start("dpkg", QStringList() << "-s" << pkgName);
isInstall.waitForFinished(180*1000); // 默认超时 3 分钟
int error = QString::fromStdString(isInstall.readAllStandardError().toStdString()).length();
if(error == 0 && haveError)