Hi! On Mon, 2012-06-25 at 13:44:33 -0400, js wrote: > Package: dpkg > Version: 1.16.3 > Severity: normal
> To use update-alternatives --install <master link> <name> <path> <pri> ..., > one needs an option in update-alternatives to find the master link if > <name> has just one alternative installed. This is the symbolic link > that points to the /etc/alternatives/<name> > If update-alternatives is the interface to the alternatives system, it > should provide the all information needed to install a new alternative > in all cases. Indeed, the correct option here would be --query but even that one does not provide that information, and what's worse it prints the alternative name as Link instead of Name... I'm thinking about adding a --query-format or something similar and correcting the above for my next push. > There is no option in update-alternatives to find the master link that points > to /etc/alternatives/rename: > > jack@berkeley:tmp => update-alternatives --config rename > There is only one alternative in link group rename: /usr/bin/prename > Nothing to configure. > This fails if there is exactly one alternative installed but works if > multiple alternatives are installed: > jack@berkeley:tmp => update-alternatives --config java > There are 5 choices for the alternative java (providing /usr/bin/java). > <<<<<<<< this is needed for new install <<<<<< > > Selection Path Priority > Status > ------------------------------------------------------------ > 0 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061 > auto mode > 1 /usr/bin/gij-4.6 1046 > manual mode > 2 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061 > manual mode > 3 /usr/lib/jvm/java-6-sun/jre/bin/java 63 > manual mode > 4 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 1051 > manual mode > * 5 /usr/local/sun-java/jre1.7.0_05/bin/java 64 > manual mode Right, and at least this is easily fixable, I'll be adding the link name to the case where there's only one alternative. thanks, guillem -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

