Bug#461247: dpkg: update-alternatives --test doesn't work as advertised
Package: dpkg Version: 1.14.7 Severity: important File: /usr/sbin/update-alternatives /[ update-alternatives --help ] | Options: | --test don't do anything, just demonstrate. \ But when I tried using --test to check my --remove-all command, I got no output, and I discovered that the remove-all had actually been performed. Luckily, I had got my command right... -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (900, 'stable'), (400, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.22tms1.0 (SMP w/1 CPU core; PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages dpkg depends on: ii coreutils 5.97-5.3 The GNU core utilities ii libc6 2.7-5 GNU C Library: Shared libraries dpkg recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#461247: dpkg: update-alternatives --test doesn't work as advertised
On Thu, 17 Jan 2008, Toby Speight wrote: > Package: dpkg > Version: 1.14.7 > Severity: important > File: /usr/sbin/update-alternatives > > /[ update-alternatives --help ] > | Options: > | --test don't do anything, just demonstrate. > \ > > But when I tried using --test to check my --remove-all command, I got > no output, and I discovered that the remove-all had actually been > performed. Luckily, I had got my command right... Confirmed: $ grep testmode scripts/update-alternatives.pl my $testmode = 0; $testmode= 1; So it looks like this never got implemented... this was already the case in dpkg 1.1.4 in 1996 (this is as far as I can go in the history). Thus I suggest to simply remove that option altogether from the script and the manual page. Cheers, -- Raphaël Hertzog Le best-seller français mis à jour pour Debian Etch : http://www.ouaza.com/livre/admin-debian/
Bug#461247: dpkg: update-alternatives --test doesn't work as advertised
forcemerge 392432 461247 thanks On Fri, 2008-01-18 at 00:28:34 +0100, Raphael Hertzog wrote: > On Thu, 17 Jan 2008, Toby Speight wrote: > > Package: dpkg > > Version: 1.14.7 > > Severity: important > > File: /usr/sbin/update-alternatives > > > > /[ update-alternatives --help ] > > | Options: > > | --test don't do anything, just demonstrate. > > \ > > > > But when I tried using --test to check my --remove-all command, I got > > no output, and I discovered that the remove-all had actually been > > performed. Luckily, I had got my command right... > > Confirmed: > $ grep testmode scripts/update-alternatives.pl > my $testmode = 0; > $testmode= 1; > > So it looks like this never got implemented... this was already the case > in dpkg 1.1.4 in 1996 (this is as far as I can go in the history). > > Thus I suggest to simply remove that option altogether from the script > and the manual page. I was about to add 'not yet implemented' in the --help output to sync it with the manpage, but thinking how this could be implemented I've to say I agree we better just remove the option. The whole script depends on the files it has changed/removed/symlinked during the whole execution. So I'll just do that. regards, guillem -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]