Hi,

On Mon, 10 Sep 2007, Frank Küster wrote:
> We had to fix some older alternatives breakage from a package we took
> over, and used update-alternatives --display to see whether we needed to
> do anything.  Unfortunately,
> 
> # [EMAIL PROTECTED] update-alternatives --display xdvi.bin
> xdvi.bin - Status ist auto.
>  Link verweist zur Zeit auf /usr/bin/xdvi-xaw.bin
> /usr/bin/xdvi-xaw.bin - Priorität 30
> Gegenwärtig »beste« Version ist /usr/bin/xdvi-xaw.bin.
> #
> 
> which is impossible to parse (at least not if we think about all the
> other languages).
> 
> This showed up in #438551, and we fixed it by prepending LC_ALL=C to our
> call to u-a, but it would be nice if there was an interface to query
> update-alternative's status with respect to a particular alternative.
> Something which doesn't change with localization, and hardly with time
> (and if it does, gets an entry in NEWS.Debian).

What about "readlink /etc/alternatives/xdvi.bin" ?

Or did you specifically need the info about the status (auto or not)?

Cheers,
-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/


Reply via email to