Loose down semantic versioning expressions

See https://github.com/Mibew/geo-ip-plugin/issues/6 for details
This commit is contained in:
Fedor A. Fetisov 2019-01-22 10:50:53 +03:00
parent 410b925b8d
commit a2946bd67d
2 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ class DependencyGraph
// Check that version of the dependency satisfied requirements
$version_constrain = new VersionExpression($required_version);
$dependency = $this->getPlugin($dependency_name);
if (!$version_constrain->satisfiedBy(new Version($dependency->getInstalledVersion()))) {
if (!$version_constrain->satisfiedBy(new Version($dependency->getInstalledVersion(), true))) {
trigger_error(
sprintf(
'Plugin "%s" has version incompatible with "%s" requirements!',

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]))) {
if (!$version_constrain->satisfiedBy(new Version($system_info[$lib], true))) {
return true;
}
}