From 96d4372ad379b081fb26b8fc77721f1d03469d2a Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 17 Feb 2006 15:14:09 +0000 Subject: pass a set of langs to drakx-in-chroot according to region settings --- tools/draklive | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/draklive b/tools/draklive index c88901c65..dbdee41ba 100755 --- a/tools/draklive +++ b/tools/draklive @@ -424,6 +424,7 @@ sub install_system { 'drakx-in-chroot', $live->{system}{repository}, $live->{system}{root}, + if_($live->{system}{region}, '--langs', join(':', @{$live->{regions}{$live->{system}{region}}})), if_($live->{system}{auto_install}, '--auto_install', abs_path($live->{system}{auto_install})), if_($live->{system}{patch_install}, '--defcfg', abs_path($live->{system}{patch_install}))) or die "unable to install system chroot"; @@ -827,6 +828,7 @@ GetOptions( "all" => sub { $_->{to_run} = 1 foreach grep { member($_->{name}, @all) } @actions }, (map { $_->{name} => \$_->{to_run} } @actions), "device:s" => sub { $live{media}{device} = $_[1] }, + "region:s" => sub { $live{system}{region} = $_[1] }, "config:s" => sub { my $path = $_[1]; #- don't use do(), since it can't see lexicals in the enclosing scope @@ -891,6 +893,8 @@ draklive [options] --post-install run post install only (rpms and patches installation) --config use this configuration file as live description + --region use the matching set of langs + (from the regions configuration hash) --copy-wizard run the copy wizard -- cgit v1.2.1