feat:应用版本号相同时则忽略更新

This commit is contained in:
momen 2025-06-05 10:41:04 +08:00
parent d454a58671
commit 42b25b33dc

View File

@ -39,6 +39,12 @@ QStringList aptssUpdater::getUpdateablePackages()
QString newVersion = match.captured(2);
QString oldVersion = match.captured(3);
// 检查版本是否相同,相同则跳过
if (newVersion == oldVersion) {
qDebug() << "跳过版本相同的包:" << name << "(" << oldVersion << "" << newVersion << ")";
continue;
}
// 写入内存列表
packageDetails << QString("%1: %2 → %3").arg(name, oldVersion, newVersion);