summaryrefslogtreecommitdiffstats
path: root/drakwizard.pl
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-03-02 15:40:12 +0000
committerFlorent Villard <warly@mandriva.com>2003-03-02 15:40:12 +0000
commit92bc886b773cfe8148af69399e2cced600c4422d (patch)
tree0b2afcab0baf88fd2670c3028092a26db84fffbf /drakwizard.pl
parent0c24f86ef88df61f17770a60376ab934101e6677 (diff)
downloaddrakwizard-92bc886b773cfe8148af69399e2cced600c4422d.tar
drakwizard-92bc886b773cfe8148af69399e2cced600c4422d.tar.gz
drakwizard-92bc886b773cfe8148af69399e2cced600c4422d.tar.bz2
drakwizard-92bc886b773cfe8148af69399e2cced600c4422d.tar.xz
drakwizard-92bc886b773cfe8148af69399e2cced600c4422d.zip
fix summary not returning right combo boxes values
Diffstat (limited to 'drakwizard.pl')
-rwxr-xr-xdrakwizard.pl14
1 files changed, 13 insertions, 1 deletions
diff --git a/drakwizard.pl b/drakwizard.pl
index f79c163e..dc2b74a6 100755
--- a/drakwizard.pl
+++ b/drakwizard.pl
@@ -89,7 +89,19 @@ if (/-summary/) {
while ($::isSummary--) {
push @$data, '';
}
- $in->ask_from("summary", "", $data) && $::{$perl_module_name."::"}{"$summary_func"}->();
+
+ if ($in->ask_from("summary", translate($summary->{info}), $data)) {
+ foreach (@{$summary->{freetext}}) {
+ if ($_->{main_order} eq 'bool') {
+ $ENV{$variable{$_->{variableName}}} = $ENV{$variable{$_->{variableName}}} ? 1 : 0;
+ $description{$ENV{$variable{$_->{variableName}}}} = $ENV{$variable{$_->{variableName}}} ? N("enabled") : N("disabled");
+ }
+ elsif ($_->{main_order} eq 'combo') {
+ $ENV{$variable{$_->{variableName}}} = $chooser_hash{$ENV{$variable{$_->{variableName}}}};
+ }
+ }
+ $::{$perl_module_name."::"}{"$summary_func"}->();
+ }
}
else {
get_parameter($o, $xmltree);