From 39036c0d1bce933b76d8f4d61d2644225f239e64 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 5 Apr 2005 10:09:51 +0000 Subject: media_browser is returning a file, not a file handle, /me is bad :-/ --- perl-install/install_any.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl-install/install_any.pm') diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 5bf917ded..1808c89a1 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -1268,15 +1268,15 @@ sub getAndSaveAutoInstallFloppies { sub g_default_packages { my ($o) = @_; - my ($_h, $fh) = media_browser($o, 'save', 'package_list.pl') or return; + my ($_h, $file) = media_browser($o, 'save', 'package_list.pl') or return; require Data::Dumper; my $str = Data::Dumper->Dump([ { default_packages => pkgs::selected_leaves($o->{packages}) } ], ['$o']); $str =~ s/ {8}/\t/g; - print $fh + output($file, "# You should always check the syntax with 'perl -cw auto_inst.cfg.pl'\n" . "# before testing. To use it, boot with ``linux defcfg=floppy''\n" . - $str . "\0"; + $str . "\0"); } sub loadO { -- cgit v1.2.1