Skip to content

Commit

Permalink
Merge pull request #247 from Mibew/debian_fix2
Browse files Browse the repository at this point in the history
Remove possible tilda from a string of installed dependency.
  • Loading branch information
faf authored Mar 21, 2020
2 parents c60b247 + 89f0f5c commit 3b9a8e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mibew/libs/classes/Mibew/Plugin/PluginInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function hasUnsatisfiedSystemRequirements()

// 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;
}
}
Expand Down

0 comments on commit 3b9a8e5

Please sign in to comment.