Re: RFS: cdrbq -- graphical cd burning frontend
- To: debian-mentors@lists.debian.org
- Subject: Re: RFS: cdrbq -- graphical cd burning frontend
- From: Russ Allbery <rra@debian.org>
- Date: Sat, 03 Dec 2005 09:31:45 -0800
- Message-id: <877jam2ike.fsf@windlord.stanford.edu>
- In-reply-to: <20051203164020.GA6373@andromeda> (Justin Pryzby's message of "Sat, 3 Dec 2005 11:40:20 -0500")
- References: <1133130509.15816.4.camel@localhost.localdomain> <20051128032357.GB26054@andromeda> <1133627129.9366.5.camel@localhost.localdomain> <20051203164020.GA6373@andromeda>
Justin Pryzby <justinpryzby@users.sourceforge.net> writes:
> Okay, great. One thing:
> + ln -s /usr/bin/cdrbq /usr/bin/cdrtoaster
> This line is not idempotent; it will fail the second time around. My
> first though was to propose:
> ln -sf cdrbq /usr/bin/cdrtoaster
> But it will overwrite a cdrtoaster binary! This is more correct:
> [ -e /usr/bin/cdrtoaster ] || ln -s cdrbq /usr/bin/cdrtoaster
> This will only make a symlink if cdrtoaster isn't installed. But is
> there a way to make the symlink if cdrtoaster is installed, and then
> gets removed?? This is probably a job for the alternatives system.
I think the last sentence here is the best comment. Maybe I'm missing
something, but this sounds like a job for alternatives from the start to
me rather than creating symlinks in /usr/bin.
Unfortunately, using alternatives requires that cdrtoaster uses
alternatives too, but then the result is much more maintainable and
predictable for the user.
--
Russ Allbery (rra@debian.org) <http://www.eyrie.org/~eagle/>
Reply to: