Skip to content

Commit cac4439

Browse files
18202781743deepin-bot[bot]
authored andcommitted
fix: add missing UosMilitary edition type cases
Added case 9 to return UosMilitary/UosMilitaryS in uosEditionType function The change was necessary because the system needs to recognize edition type 9 as a valid military edition variant This ensures proper handling of all supported UOS edition types in the system fix: 添加缺失的 UosMilitary 版本类型处理 在 uosEditionType 函数中添加了 case 9 返回 UosMilitary/UosMilitaryS 的 处理 此变更是必要的,因为系统需要将类型9识别为有效的军事版本变体 这确保了系统中对所有支持的 UOS 版本类型的正确处理 pms: BUG-316837
1 parent d8ded4a commit cac4439

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dsysinfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ DSysInfo::UosEdition DSysInfo::uosEditionType()
664664
case 3:
665665
return UosCommunity;
666666
case 4:
667+
case 9:
667668
return UosMilitary;
668669
case 5:
669670
return UosDeviceEdition;
@@ -681,6 +682,7 @@ DSysInfo::UosEdition DSysInfo::uosEditionType()
681682
case 3:
682683
return UosEuler;
683684
case 4:
685+
case 9:
684686
return UosMilitaryS;
685687
case 5:
686688
return UosDeviceEdition;

0 commit comments

Comments
 (0)