summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-01-07 13:26:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-01-07 13:26:56 +0000
commit4e4ce871d3a4d4eef97e7621b91a445840a09c24 (patch)
tree488ec72d93db9b90eb79454297ab65aec15ffe63 /perl-install/install_steps.pm
parentc2f200920f04dba0874c054038770a91a71fbba5 (diff)
downloaddrakx-4e4ce871d3a4d4eef97e7621b91a445840a09c24.tar
drakx-4e4ce871d3a4d4eef97e7621b91a445840a09c24.tar.gz
drakx-4e4ce871d3a4d4eef97e7621b91a445840a09c24.tar.bz2
drakx-4e4ce871d3a4d4eef97e7621b91a445840a09c24.tar.xz
drakx-4e4ce871d3a4d4eef97e7621b91a445840a09c24.zip
fix looking for broken alternatives
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 8d61c58c2..de992bc1f 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -503,6 +503,7 @@ 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;
log::l("fixing broken alternative $_");
run_program::rooted($o->{prefix}, "update-alternatives", "--auto", $_);
}