diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-02 17:07:31 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-02 17:07:31 +0000 |
commit | 6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a (patch) | |
tree | 72df4198c48cbb8799efae96ffa95663dff3310e /perl-install | |
parent | 9a9961b6cf1ad884564dc3dca7e7e8447f2321e0 (diff) | |
download | drakx-6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a.tar drakx-6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a.tar.gz drakx-6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a.tar.bz2 drakx-6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a.tar.xz drakx-6ae6cf3b4f08444254fd3ed6c28e50036e7a2d6a.zip |
use output()
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/bootloader.pm | 7 |
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"; |