[Yum-devel] [PATCH][RFC] Skip-broken support again
Florian Festi
ffesti at redhat.com
Tue Dec 11 14:28:43 UTC 2007
seth vidal wrote:
> On Tue, 2007-12-11 at 14:45 +0100, Florian Festi wrote:
>> Sorry. It looks like the skip broken code works exactly the opposite way I
>> thought: It removes the packages that leads to the problem.
>>
>> I've commited two test cases that give an idea why this might not be the
>> best strategy (hmm, may be I should add some doc strings...).
>
> There's a lot of the test case you're describing in
> testAlternativePackageAvailable() that has much more to do with intent.
>
> if I type
>
> yum install foo bar-1.1
>
> and skipbroken realizes bar-1.1 can't be installed and backtracks it out
> and replaces it with bar-ng. I, as the user, am going to be fairly
> pissed.
While I agree your opinion from a user perspective I don't think this can
happen with the proposed algorithm. bar-ng can only pulled in while there is
a package requiring it. What can happen is:
yum install foo bar
results in installing foo and bar-ng as bar-ng is needed for foo and bar
cannot be installed. But sorry, that's the best you can get in this situation.
Florian
More information about the Yum-devel
mailing list