卸载安装包时,将pkg转换为小写,让dpkg能够识别

Merge pull request  from 枯叶蚊/master
This commit is contained in:
shenmo 2020-10-20 09:02:27 +08:00 committed by Gitee
commit c529367998
3 changed files with 4 additions and 2 deletions

2
.gitignore vendored

@ -1 +1,3 @@
spark-store.pro.user*
build/
.vscode/

@ -224,7 +224,7 @@ void SpkAppInfoLoaderThread::run()
```
**应用下载**
**应用下载**
Widget::on_pushButton_download_clicked() 是点击下载的安装方法。
最终使用的是 `QNetwrokAccessManager` 进行GET请求获取数据写入文件。
```cpp

@ -988,7 +988,7 @@ void Widget::on_pushButton_uninstall_clicked()
ui->pushButton_download->setEnabled(false);
ui->pushButton_uninstall->setEnabled(false);
QProcess uninstall;
uninstall.start("pkexec apt purge -y "+pkgName);
uninstall.start("pkexec apt purge -y "+pkgName.toLower());
uninstall.waitForFinished();
ui->pushButton_download->setEnabled(true);
ui->pushButton_download->setText("Install");