From 42b25b33dc28a0d99275b6aa9ad4d791541079d7 Mon Sep 17 00:00:00 2001 From: momen Date: Thu, 5 Jun 2025 10:41:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=BA=94=E7=94=A8=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E7=9B=B8=E5=90=8C=E6=97=B6=E5=88=99=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/aptssupdater.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/aptssupdater.cpp b/src/aptssupdater.cpp index c671e1a..5a464dd 100644 --- a/src/aptssupdater.cpp +++ b/src/aptssupdater.cpp @@ -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);