Philipp Matthias Hahn schrieb:
> Hello!
> 
> On Fri, Jul 11, 2008 at 11:05:10AM +0200, Matthias Klose wrote:
>> no, afaik this doesn't work. new programs and man pages are added in new
>> versions, so you have to make this for each master alternative depending on 
>> the
>> version you upgrade from. plus this approach doesn't work if new slaves are
>> added or removed to an alternative.
> 
> The patch only makes the "update-alternative --remove" in the *.preinst
> scripts conditional, not the installs in in *.postinst scripts.

ok, will apply this in the next upload.

> update-alternative is idempotent, so adding the same alternatives
> multiple times does not break anything. You can even add additional
> slaves and those get added, IFF you're in auto-mode. They won't
> automatically be added, if you changed to manual-mode.
> 
>> It would make much more sense to handle all binaries currently handled by
>> separate alternatives in one alternative, but again, dpkg cannot handle
>> adding/removing slaves without changing the currently selected alternative.
>>
>> see #342566 for the problems handling master/slave alternatives.
> 
> Personally I don't care much about slaves: If I manually changed java to
> sun-java6, and java didn't had a German manual page than, I don't care if
> it gets added in some future verson. (I make the decision now, not based
> on some future possibility). If I want that new feature, I thinks it's
> reasonable to redo the "update-alternative --config java".

it *is* annoying if other commands are handled as slaves as well.

  Matthias



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to