mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11150] Better version normalization
PHPBB3-11150
This commit is contained in:
parent
ac129f34d3
commit
540bac3ba4
2 changed files with 9 additions and 2 deletions
|
@ -118,7 +118,6 @@ class installer
|
||||||
// TODO Extract the precise error and use language string
|
// TODO Extract the precise error and use language string
|
||||||
throw new \RuntimeException(substr($output, $error_pos));
|
throw new \RuntimeException(substr($output, $error_pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (\Exception $e)
|
catch (\Exception $e)
|
||||||
{
|
{
|
||||||
|
|
|
@ -191,7 +191,15 @@ class manager implements manager_interface
|
||||||
{
|
{
|
||||||
if (is_numeric($package))
|
if (is_numeric($package))
|
||||||
{
|
{
|
||||||
$normalized_packages[$version] = '*';
|
if (strpos($version, ':') !== false)
|
||||||
|
{
|
||||||
|
$parts = explode(':', $version);
|
||||||
|
$normalized_packages[$parts[0]] = $parts[1];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$normalized_packages[$version] = '*';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue