mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
update:更新终端调用aptss命令展示可更新列表
This commit is contained in:
@@ -5,8 +5,22 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
, ui(new Ui::MainWindow)
|
||||
{
|
||||
checkUpdates();
|
||||
ui->setupUi(this);
|
||||
}
|
||||
void MainWindow::checkUpdates()
|
||||
{
|
||||
aptssUpdater updater;
|
||||
|
||||
// 获取可更新包列表
|
||||
QStringList updateablePackages = updater.getUpdateablePackages();
|
||||
qDebug() << "可更新包列表:";
|
||||
for (const QString &package : updateablePackages) {
|
||||
qDebug() << package;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user