mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Loose down semantic versioning expressions
See https://github.com/Mibew/geo-ip-plugin/issues/6 for details
This commit is contained in:
parent
410b925b8d
commit
a2946bd67d
@ -281,7 +281,7 @@ class DependencyGraph
|
|||||||
// Check that version of the dependency satisfied requirements
|
// Check that version of the dependency satisfied requirements
|
||||||
$version_constrain = new VersionExpression($required_version);
|
$version_constrain = new VersionExpression($required_version);
|
||||||
$dependency = $this->getPlugin($dependency_name);
|
$dependency = $this->getPlugin($dependency_name);
|
||||||
if (!$version_constrain->satisfiedBy(new Version($dependency->getInstalledVersion()))) {
|
if (!$version_constrain->satisfiedBy(new Version($dependency->getInstalledVersion(), true))) {
|
||||||
trigger_error(
|
trigger_error(
|
||||||
sprintf(
|
sprintf(
|
||||||
'Plugin "%s" has version incompatible with "%s" requirements!',
|
'Plugin "%s" has version incompatible with "%s" requirements!',
|
||||||
|
@ -268,7 +268,7 @@ class PluginInfo
|
|||||||
|
|
||||||
// Check exact version of the library
|
// Check exact version of the library
|
||||||
$version_constrain = new VersionExpression($required_version);
|
$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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user