Merge pull request #4653 from Icinga/fix/module-dependency-evaluation-4652
Fix module dependency evaluation
This commit is contained in:
commit
974bff9227
|
@ -465,7 +465,7 @@ class Manager
|
|||
}
|
||||
|
||||
$operator = '=';
|
||||
if (preg_match('/^([<>=]{1,2})\s*v?((?:[\d.]+)(?:\D+)?)$/', $version, $match)) {
|
||||
if (preg_match('/^([<>=]{1,2})\s*v?((?:[\d.]+)(?:.+)?)$/', $version, $match)) {
|
||||
$operator = $match[1];
|
||||
$version = $match[2];
|
||||
}
|
||||
|
|
|
@ -829,8 +829,7 @@ class Module
|
|||
if (preg_match('/^([\w\-\/]+)\s+\((.+)\)$/', $part, $m)) {
|
||||
$metadata->{$key}[$m[1]] = $m[2];
|
||||
} else {
|
||||
// TODO: FAIL?
|
||||
continue;
|
||||
$metadata->{$key}[$part] = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue