1
0
Fork 0

Merge pull request #911 from adrienbrault/patch-1

Fix Solver CS
pull/909/merge
Jordi Boggiano 2012-07-15 08:44:58 -07:00
commit 5e1c01e132
1 changed files with 11 additions and 9 deletions

View File

@ -524,12 +524,14 @@ class Solver
if (!$job) {
$why->disable();
} else {
// disable all rules of this job
foreach ($this->rules as $rule) {
if ($job === $rule->getJob()) {
$rule->disable();
}
return;
}
// disable all rules of this job
foreach ($this->rules as $rule) {
if ($job === $rule->getJob()) {
$rule->disable();
}
}
}
@ -600,12 +602,12 @@ class Solver
if (1 === $level) {
$conflictRule = $this->propagate($level);
if ($conflictRule !== null) {
if (null !== $conflictRule) {
if ($this->analyzeUnsolvable($conflictRule, $disableRules)) {
continue;
} else {
return;
}
return;
}
}