summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-03 13:12:13 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-03 13:12:13 +0000
commit23c259c90cbed0280c9e23b3c9763363c148c472 (patch)
tree608f1f62a585f39703a8f42d83447dfcf045a826 /perl-install/install_steps.pm
parent5d3903d31de512391136aa05e77de530baceb64a (diff)
downloaddrakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar
drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar.gz
drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar.bz2
drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.tar.xz
drakx-backup-do-not-use-23c259c90cbed0280c9e23b3c9763363c148c472.zip
do not use "local my $F, ...", use "local(my $F, ...) instead
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index a9a613f0a..838694be8 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -501,14 +501,10 @@ GridHeight=70
#- fix bad update-alternatives that may occurs after upgrade (but let them for install too).
if (-d "$o->{prefix}/etc/alternatives") {
- local *ALTERNATE_DIR; opendir ALTERNATE_DIR, "$o->{prefix}/etc/alternatives";
- local $_;
- while (defined($_ = readdir ALTERNATE_DIR)) {
- -e "$o->{prefix}/etc/alternatives/$_" and next;
+ foreach (all("$o->{prefix}/etc/alternatives")) {
log::l("fixing broken alternative $_");
run_program::rooted($o->{prefix}, "update-alternatives", "--auto", $_);
}
- closedir ALTERNATE_DIR;
}
#- update oem lilo image if it exists.