Commit eb1ec98
committed
fix(patch): Use Updating state; handle zero DstFiles groups
The group-apply loop was reporting InstallProgressState.Install during
krpdiff patching. Rename to InstallProgressState.Updating, which is the
correct state enum value for an in-place patch operation.
When all GroupInfos have empty DstFiles arrays (e.g. the API returned
groups without dest file metadata), the previous code initialised
TotalStateToComplete and TotalCountToDownload to 0, making the progress
bar appear stuck at 0/0. Fall back to the group count as the effective
total so the counter always reads 'n/N groups' in that case, and advance
it by one per empty group so progress is visible as they are processed.1 parent a12a616 commit eb1ec98
1 file changed
Lines changed: 21 additions & 4 deletions
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1132 | 1132 | | |
1133 | 1133 | | |
1134 | 1134 | | |
1135 | | - | |
| 1135 | + | |
1136 | 1136 | | |
1137 | | - | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1138 | 1140 | | |
1139 | 1141 | | |
1140 | 1142 | | |
| |||
1144 | 1146 | | |
1145 | 1147 | | |
1146 | 1148 | | |
1147 | | - | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
1148 | 1154 | | |
1149 | 1155 | | |
1150 | | - | |
| 1156 | + | |
1151 | 1157 | | |
1152 | 1158 | | |
1153 | 1159 | | |
| |||
1161 | 1167 | | |
1162 | 1168 | | |
1163 | 1169 | | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
1164 | 1180 | | |
| 1181 | + | |
1165 | 1182 | | |
1166 | 1183 | | |
1167 | 1184 | | |
| |||
0 commit comments