From 332c83cda4148f3f034d8b3ff5538ea72bd32a35 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Thu, 16 Jan 2003 12:56:11 +0000 Subject: fixed test of alternatives always seen as broken. --- perl-install/install_steps.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 2434d4c42..1b7002500 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -503,7 +503,8 @@ GridHeight=70 #- fix bad update-alternatives that may occurs after upgrade (but let them for install too). if (-d "$o->{prefix}/etc/alternatives") { foreach (all("$o->{prefix}/etc/alternatives")) { - -e "$o->{prefix}/etc/alternatives/$_" and next; + my $l = readlink "$o->{prefix}/etc/alternatives/$_"; + -e ($l =~ m|^/| ? "$o->{prefix}$l" : "$o->{prefix}/etc/alternatives/$_") and next; log::l("fixing broken alternative $_"); run_program::rooted($o->{prefix}, "update-alternatives", "--auto", $_); } -- cgit v1.2.1