On Mon, Aug 01, 2011 at 08:20:21PM +0000, Thorsten Glaser wrote:
> Hi,
> 
> I just ran into a funny problem regarding update-alternatives
> and editorrc: if joe is installed, it wants /etc/joe/editorrc
> whereas jupp reads /etc/jupp/editorrc (I???ll use joe???s for now
> and symlink to it but that will break when joe was installed,
> jupp is selected and joe is then removed??? probably, that is ???
> not RC severity but to be fixed before the release ??? I think,
> /etc/joe will simply still exist and dpkg not rmdir.)
> 
> Can we agree to move the 'editorrc' alternative to /etc and
> symlink to that from /etc/joe/editorrc and /etc/jupp/editorrc
> both? Can we also prod the update-alternatives people to make
> editorrc a slave to editor, since that???s really the only way?
> (What didn???t work? You only wrote it didn???t work in joe-3.5???s
> changelog entry.)

What's with all the UTF-8 quotes? You're making your mails really hard to
read and for no apparent reason...

The problem with 'editorrc' is that it's really a joe-specific config file,
so it doesn't make sense to move it out of /etc/joe.

We would want editorrc to depend on editor in some way, since that is indeed
logical, but IIRC you can't just invent new slaves to editor out of the blue
and expect other editor alternatives to play along - they wouldn't know how.

Maybe simply coding it differently inside joe will be the best solution - if
it notices that $self is 'editor', then don't just look for /etc/joe/${self}rc
but instead look itself up once again through /etc/alternatives/editor to
see what actual $variant was chosen, and then use that /etc/joe/${variant}rc.

-- 
     2. That which causes joy or happiness.



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to