Remove possible tilda from a string of installed dependency.

Fix #246.
This commit is contained in:
Fedor A. Fetisov 2020-03-19 18:56:12 +03:00
parent 7bdf01d344
commit 89f0f5c688

View File

@ -268,7 +268,7 @@ class PluginInfo
// Check exact version of the library
$version_constrain = new VersionExpression($required_version);
if (!$version_constrain->satisfiedBy(new Version($system_info[$lib], true))) {
if (!$version_constrain->satisfiedBy(new Version(preg_replace('/~/', '-', $system_info[$lib]), true))) {
return true;
}
}