summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-02 17:07:31 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-02 17:07:31 +0000
commit6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a (patch)
tree72df4198c48cbb8799efae96ffa95663dff3310e /perl-install
parent9a9961b6cf1ad884564dc3dca7e7e8447f2321e0 (diff)
downloaddrakx-backup-do-not-use-6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a.tar
drakx-backup-do-not-use-6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a.tar.gz
drakx-backup-do-not-use-6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a.tar.bz2
drakx-backup-do-not-use-6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a.tar.xz
drakx-backup-do-not-use-6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a.zip
use output()
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/bootloader.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index d1676af98..63751aee0 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -605,8 +605,8 @@ sub install_yaboot {
$lilo->{prompt} = $lilo->{timeout};
if ($lilo->{message}) {
- local *F;
- open F, ">$::prefix/boot/message" and print F $lilo->{message} or $lilo->{message} = 0;
+ eval { output("$::prefix/boot/message", $lilo->{message}) }
+ or $lilo->{message} = 0;
}
{
local $\ = "\n";
@@ -704,8 +704,7 @@ sub install_silo {
c::hasAliases() or log::l("clearing promvars alias as non supported"), $silo->{bootalias} = '';
if ($silo->{message}) {
- local *F;
- open F, ">$::prefix/boot/message" and print F $silo->{message} or $silo->{message} = 0;
+ eval { output("$::prefix/boot/message", $silo->{message}) } or $silo->{message} = 0;
}
{
local $\ = "\n";