Merge pull request #247 from Mibew/debian_fix2

Remove possible tilda from a string of installed dependency.
This commit is contained in:
Fedor A. Fetisov 2020-03-21 17:28:13 +03:00 committed by GitHub
commit 3b9a8e5456
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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