We do not support any options to keep obsolete packages
parent
41bd845c54
commit
5ba9a887c2
|
@ -30,7 +30,6 @@ class Solver
|
||||||
protected $ruleToJob = array();
|
protected $ruleToJob = array();
|
||||||
protected $addedMap = array();
|
protected $addedMap = array();
|
||||||
protected $updateMap = array();
|
protected $updateMap = array();
|
||||||
protected $noObsoletes = array();
|
|
||||||
protected $watches = array();
|
protected $watches = array();
|
||||||
protected $removeWatches = array();
|
protected $removeWatches = array();
|
||||||
protected $decisionMap;
|
protected $decisionMap;
|
||||||
|
@ -237,12 +236,6 @@ class Solver
|
||||||
}
|
}
|
||||||
|
|
||||||
// check obsoletes and implicit obsoletes of a package
|
// check obsoletes and implicit obsoletes of a package
|
||||||
// if ignoreinstalledsobsoletes is not set, we're also checking
|
|
||||||
// obsoletes of installed packages (like newer rpm versions)
|
|
||||||
//
|
|
||||||
/** TODO if ($this->noInstalledObsoletes) */
|
|
||||||
if (true) {
|
|
||||||
$noObsoletes = isset($this->noObsoletes[$package->getId()]);
|
|
||||||
$isInstalled = (isset($this->installedMap[$package->getId()]));
|
$isInstalled = (isset($this->installedMap[$package->getId()]));
|
||||||
|
|
||||||
foreach ($package->getReplaces() as $link) {
|
foreach ($package->getReplaces() as $link) {
|
||||||
|
@ -273,18 +266,12 @@ class Solver
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// obsolete same packages even when noObsoletes
|
|
||||||
if ($noObsoletes && (!$package->equals($provider))) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$reason = ($package->getName() == $provider->getName()) ? Rule::RULE_PACKAGE_SAME_NAME : Rule::RULE_PACKAGE_IMPLICIT_OBSOLETES;
|
$reason = ($package->getName() == $provider->getName()) ? Rule::RULE_PACKAGE_SAME_NAME : Rule::RULE_PACKAGE_IMPLICIT_OBSOLETES;
|
||||||
$this->addRule(RuleSet::TYPE_PACKAGE, $rule = $this->createConflictRule($package, $provider, $reason, (string) $package));
|
$this->addRule(RuleSet::TYPE_PACKAGE, $rule = $this->createConflictRule($package, $provider, $reason, (string) $package));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds all rules for all update packages of a given package
|
* Adds all rules for all update packages of a given package
|
||||||
|
|
Loading…
Reference in New Issue