summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-25 07:46:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-25 07:46:58 +0000
commit14c865d29f0f482700e535641d50152eecc316d2 (patch)
tree64cd6ef6437a459d4a1d93e384a46512e4c0d490 /perl-install
parentc0c717de49faf153c958d8e1b098d251f066f82f (diff)
downloaddrakx-14c865d29f0f482700e535641d50152eecc316d2.tar
drakx-14c865d29f0f482700e535641d50152eecc316d2.tar.gz
drakx-14c865d29f0f482700e535641d50152eecc316d2.tar.bz2
drakx-14c865d29f0f482700e535641d50152eecc316d2.tar.xz
drakx-14c865d29f0f482700e535641d50152eecc316d2.zip
create selected_leaves_pl() out of g_default_packages()
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install/any.pm13
1 files changed, 9 insertions, 4 deletions
diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm
index 95bbb4488..416e24bdb 100644
--- a/perl-install/install/any.pm
+++ b/perl-install/install/any.pm
@@ -752,14 +752,19 @@ sub g_default_packages {
my ($o) = @_;
my ($_h, $file) = media_browser($o, 'save', 'package_list.pl') or return;
+ output($file, selected_leaves_pl($o));
+}
+
+sub selected_leaves_pl {
+ my ($o) = @_;
require Data::Dumper;
my $str = Data::Dumper->Dump([ { default_packages => install::pkgs::selected_leaves($o->{packages}) } ], ['$o']);
$str =~ s/ {8}/\t/g;
- 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);
+
+ "# 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;
}
sub loadO {