adjust: disable installed check as it is broken

This commit is contained in:
2024-04-10 16:29:17 +08:00
parent 4721bbd4f2
commit 5b81eb6423

View File

@@ -491,18 +491,18 @@ void AppIntoPage::on_pushButton_3_clicked()
uninstall.start("host-spawn", QStringList() << "pkexec" << "apt" << "autopurge" << "-y" << info["Pkgname"].toString().toLower()); uninstall.start("host-spawn", QStringList() << "pkexec" << "apt" << "autopurge" << "-y" << info["Pkgname"].toString().toLower());
uninstall.waitForFinished(-1); uninstall.waitForFinished(-1);
QProcess check; // QProcess check;
check.start("host-spawn", QStringList() << "dpkg" << "-s" << info["Pkgname"].toString().toLower()); // check.start("host-spawn", QStringList() << "dpkg" << "-s" << info["Pkgname"].toString().toLower());
check.waitForFinished(10*1000); // check.waitForFinished(10*1000);
if (check.readAllStandardOutput().isEmpty()) // if (check.readAllStandardOutput().isEmpty())
{ // {
ui->downloadButton->setText(tr("Download and Install")); ui->downloadButton->setText(tr("Download and Install"));
ui->pushButton_3->hide(); ui->pushButton_3->hide();
updatesEnabled(); updatesEnabled();
Utils::sendNotification("spark-store",tr("Spark Store"),tr("Uninstall succeeded")); Utils::sendNotification("spark-store",tr("Spark Store"),tr("Uninstall succeeded"));
} // }
ui->downloadButton->setEnabled(true); ui->downloadButton->setEnabled(true);
ui->pushButton_3->setEnabled(true); ui->pushButton_3->setEnabled(true);