mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 08:34:11 +03:00
Merge pull request #241 from Mibew/semver_fix
Loose down semantic versioning expressions
This commit is contained in:
commit
88a1b978ce
@ -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!',
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user