Commit c534f15
authored
Use version comparison function rather than string compare in PS (microsoft#5323)
## Change
Swap the version finding code in the PowerShell module from using a
direct string comparison to using the `CompareToVersion` function. This
enables non-exact version matching, such as "1 == 1.0.0".1 parent 7016c56 commit c534f15
File tree
2 files changed
+18
-1
lines changed- src/PowerShell
- Microsoft.WinGet.Client.Engine/Commands/Common
- tests
2 files changed
+18
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
603 | 618 | | |
604 | 619 | | |
605 | 620 | | |
| |||
0 commit comments