mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
fix: correct < plugin dependency implementation (#6420)
was wrongly implemented using >=
This commit is contained in:
@@ -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("~"):
|
||||||
|
|||||||
Reference in New Issue
Block a user