summaryrefslogtreecommitdiffstats
path: root/drakwizard.pl
diff options
context:
space:
mode:
authorArnaud Desmons <adesmons@mandriva.com>2002-10-11 08:10:27 +0000
committerArnaud Desmons <adesmons@mandriva.com>2002-10-11 08:10:27 +0000
commit159573cc629f3a70fe414958dddf1fc12ff74b67 (patch)
treed638df6283f621a95ae836d2653c2390086d3e19 /drakwizard.pl
parent563e68df0b1d70c2b139364383ea3cd34dc9e39e (diff)
downloaddrakwizard-159573cc629f3a70fe414958dddf1fc12ff74b67.tar
drakwizard-159573cc629f3a70fe414958dddf1fc12ff74b67.tar.gz
drakwizard-159573cc629f3a70fe414958dddf1fc12ff74b67.tar.bz2
drakwizard-159573cc629f3a70fe414958dddf1fc12ff74b67.tar.xz
drakwizard-159573cc629f3a70fe414958dddf1fc12ff74b67.zip
bool fillfunc enable/disable
Diffstat (limited to 'drakwizard.pl')
-rwxr-xr-xdrakwizard.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/drakwizard.pl b/drakwizard.pl
index 5d15cd50..c21795cf 100755
--- a/drakwizard.pl
+++ b/drakwizard.pl
@@ -362,8 +362,10 @@ sub is_disabled_summary {
if ($page_val eq $widget) {
foreach (@{$page->{freetext}}) {
my ($val, $arg) = split(/\s*?=\s*/, $_->{is}) if ($_->{is});
- $disabled{$_->{variableName}} = defined $arg ? $ENV{$variable{$val}} != $arg : !$ENV{$variable{$val}};
$disabled{$_->{variableName}} = defined $page_arg ? ($ENV{$variable{$page_val}} != $page_arg) : !$ENV{$variable{$page_val}};
+ if ($_->{is} && !$disabled{$_->{variableName}}) {
+ $disabled{$_->{variableName}} = defined $arg ? $ENV{$variable{$val}} != $arg : !$ENV{$variable{$val}};
+ }
}
}
}