mirror of
				https://gitee.com/spark-store-project/spark-store
				synced 2025-11-04 16:22:19 +08:00 
			
		
		
		
	feat:应用版本号相同时则忽略更新
This commit is contained in:
		
							parent
							
								
									d454a58671
								
							
						
					
					
						commit
						42b25b33dc
					
				@ -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);
 | 
			
		||||
                
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user