Processed: retitle 500401 to [D-U] broken link in manual mode is not updated
Processing commands for [EMAIL PROTECTED]: retitle 500401 [D-U] broken link in manual mode is not updated Bug#500401: flashplugin-nonfree: end user support request Changed Bug title to `[D-U] broken link in manual mode is not updated' from `flashplugin-nonfree: end user support request'. End of message, stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Processed: retitle 500401 to [U-A] broken link in manual mode is not updated
Processing commands for [EMAIL PROTECTED]: retitle 500401 [U-A] broken link in manual mode is not updated Bug#500401: [D-U] broken link in manual mode is not updated Changed Bug title to `[U-A] broken link in manual mode is not updated' from `[D-U] broken link in manual mode is not updated'. End of message, stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Processed: reassign 500401 to dpkg
Processing commands for [EMAIL PROTECTED]: reassign 500401 dpkg Bug#500401: flashplugin-nonfree: end user support request Bug reassigned from package `flashplugin-nonfree' to `dpkg'. End of message, stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Processed: forcibly merging 141325 500401
Processing commands for [EMAIL PROTECTED]: forcemerge 141325 500401 Bug#141325: [U-A] lam-runtime: the link /etc/alternatives/mpirun ends up pointing to /usr/bin/mpirun_lam Bug#500401: [U-A] broken link in manual mode is not updated Bug#199426: [U-A] alternatives symlink for aterm_0.4.2-5 lost Bug#203582: [U-A] dpkg: links to /etc/alternatives not generated if alternatives exit already Bug#282290: dpkg: [U-A] --config exists even when links are broken with one choice Bug#285686: [U-A] Handle a dangling manually managed symlink better (as automatic?) Bug#311288: update-alternatives: automake fails to update alternatives when uninstalled Bug#481555: /etc/alternative/emacs left pointing at emacs21, not emacs22 after upgrade Forcibly Merged 141325 199426 203582 282290 285686 311288 481555 500401. End of message, stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Processed: [u-a] simple fix for single manual choice under dangling link and --config
Processing commands for [EMAIL PROTECTED]: severity 141325 important Bug#141325: [U-A] lam-runtime: the link /etc/alternatives/mpirun ends up pointing to /usr/bin/mpirun_lam Severity set to `important' from `normal' tags 141325 patch Bug#141325: [U-A] lam-runtime: the link /etc/alternatives/mpirun ends up pointing to /usr/bin/mpirun_lam There were no tags set. Tags added: patch forcemerge 141325 199426 203582 282290 285686 311288 311288 Bug#141325: [U-A] lam-runtime: the link /etc/alternatives/mpirun ends up pointing to /usr/bin/mpirun_lam Bug#199426: [U-A] alternatives symlink for aterm_0.4.2-5 lost Bug#203582: [U-A] dpkg: links to /etc/alternatives not generated if alternatives exit already Bug#282290: dpkg: [U-A] --config exists even when links are broken with one choice Bug#285686: [U-A] Handle a dangling manually managed symlink better (as automatic?) Bug#311288: update-alternatives: automake fails to update alternatives when uninstalled Bug#481555: /etc/alternative/emacs left pointing at emacs21, not emacs22 after upgrade Forcibly Merged 141325 199426 203582 282290 285686 311288 481555. thanks Stopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#141325: Fix for lenny possible?? : Bug#141325: [u-a] simple fix for single manual choice under dangling link and --config
Hi dpkg folks, I think this old update-alternatives bug needs to be fixed for lenny. I merged many bug reports. Many of which were reassigned from other packages. So impact to annoyance of users exists. If you want to be very conservative patch for lenny, you should use just following parts of my patch reported: -if ($#versions == 0) { +if ($#versions == 0 $mode eq 'auto' $best eq readlink($altdir/$name)) { Without this patch, --config does not run even if it has broken symlink if choice is single. That is wrong. This does not require manpage update. (But this lacks intuitiveness for --config) If you are considering applying this for squeeze, please consider attached newer version which add --skip option to skip configuring auto mode packages which are configured correctly. This is intended to inspect whole alternative system quickly with --all option (--all was my patch). # update-alternatives --skip --all As far as fixing bad symlink situation created in interrupted upgrade etc., my previously reported patch works fine. But how robust update-alternatives are against broken package upload and subsequent correction is still needs to be investigated for the latest script. This is separate issue. With this patch, we can recover. Osamu --- update-alternatives.orig 2008-09-28 21:43:51.0 +0900 +++ update-alternatives 2008-10-04 00:05:31.0 +0900 @@ -23,6 +23,7 @@ my $action = ''; # Action to perform (display / install / remove / display / auto / config) my $mode = 'auto';# Update mode for alternative (manual / auto) +my $skip = '';# Skip correct auto mode condition for --config my $state;# State of alternative: # expected: alternative with highest priority is the active alternative # expected-inprogress: busy selecting alternative with highest priority @@ -100,6 +101,7 @@ Options: --altdir directory change the alternatives directory. --admindir directory change the administrative directory. + --skip skip prompt for correct auto mode choice (--config) --verboseverbose operation, more output. --quiet quiet operation, minimal output. --help show this help message. @@ -253,7 +255,7 @@ { my ($spath, $preferred) = (@_); -printf STDOUT _g(Using '%s' to provide '%s'.) . \n, $spath, $name; +printf STDOUT _g(Using '%s' to provide '%s' in mode=%s.) . \n, $spath, $name, $mode; checked_symlink($spath,$altdir/$name.dpkg-tmp); checked_mv($altdir/$name.dpkg-tmp, $altdir/$name); @@ -336,6 +338,8 @@ } elsif (m/^--admindir$/) { @ARGV || badusage(sprintf(_g(--%s needs a directory argument), admindir)); $admindir= shift(@ARGV); +} elsif (m/^--skip$/) { + $skip = '--skip'; } elsif (m/^--all$/) { $action = 'all'; } else { @@ -630,24 +634,29 @@ Nothing to configure.\n), $name; return -1; } -if ($#versions == 0) { +if ($skip eq '--skip' $mode eq 'auto' $best eq readlink($altdir/$name)) { print \n; - printf _g(There is only 1 program which provides %s\n. +display_link_group(); +return -1; +} +if ($#versions == 0 $mode eq 'auto' $best eq readlink($altdir/$name)) { + print \n; + printf _g(There is only 1 program which provides %s properly in auto mode\n. (%s). Nothing to configure.\n), $name, $versions[0]; return -1; } print STDOUT \n; printf(STDOUT _g(There are %s alternatives which provide \`%s'.\n\n. - SelectionAlternative\n. + SelectionAlternative\n. ---\n), $#versions+1, $name); +printf(STDOUT %s0%s (auto mode)\n, ($mode eq auto readlink($altdir/$name) eq $best) ? '*' : ' ', $best); for (my $i = 0; $i = $#versions; $i++) { - printf(STDOUT %s%s %8s%s\n, - (readlink($altdir/$name) eq $versions[$i]) ? '*' : ' ', - ($best eq $versions[$i]) ? '+' : ' ', - $i+1, $versions[$i]); + printf(STDOUT %s %8s%s (manual mode) priority=%s\n, + (readlink($altdir/$name) eq $versions[$i] $mode eq manual) ? '*' : ' ', + $i+1, $versions[$i], $priorities[$i]); } -printf(STDOUT \n._g(Press enter to keep the default[*], or type selection number: )); +printf(STDOUT \n._g(Press select number (type enter for the current selection[*]): )); return 0; } @@ -657,14 +666,19 @@ return if config_message() 0; $preferred=STDIN; chop($preferred); -} until $preferred eq '' || $preferred=1 $preferred=$#versions+1 +} until $preferred eq '' || $preferred=0 $preferred=$#versions+1 ($preferred =~ m/[0-9]*/); if ($preferred ne '') { - $mode = manual; - $preferred--; - my $spath = $versions[$preferred]; +if ($preferred == 0) { + $action = auto; + $mode = auto; + }