fix: correct < plugin dependency implementation (#6420)

was wrongly implemented using >=
This commit is contained in:
jackstar12 2024-11-22 10:17:16 +01:00 committed by GitHub
parent 843c813f86
commit c6fc0302d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -505,7 +505,7 @@ namespace BTCPayServer.Plugins
case { } xx when xx.StartsWith(">"): case { } xx when xx.StartsWith(">"):
return installed[plugin] > parsedV; return installed[plugin] > parsedV;
case { } xx when xx.StartsWith("<"): case { } xx when xx.StartsWith("<"):
return installed[plugin] >= parsedV; return installed[plugin] < parsedV;
case { } xx when xx.StartsWith("^"): case { } xx when xx.StartsWith("^"):
return installed[plugin] >= parsedV && installed[plugin].Major == parsedV.Major; return installed[plugin] >= parsedV && installed[plugin].Major == parsedV.Major;
case { } xx when xx.StartsWith("~"): case { } xx when xx.StartsWith("~"):