From 18dc1bd21449a25331baf6adc754ee00b1465fab Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Tue, 26 Aug 2003 13:08:06 +0000 Subject: get selected list from compssUsers for readCompssUsers. --- perl-install/pkgs.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index 5b9e2f085..7ccb63627 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -540,11 +540,14 @@ sub readCompssUsers { if (/^(\S.*)/) { my $verbatim = $_; - my ($icon, $descr, $path); + my ($icon, $descr, $path, $selected); /^(.*?)\s*\[path=(.*?)\](.*)/ and $_ = "$1$3", $path = $2; /^(.*?)\s*\[icon=(.*?)\](.*)/ and $_ = "$1$3", $icon = $2; /^(.*?)\s*\[descr=(.*?)\](.*)/ and $_ = "$1$3", $descr = $2; - $compssUsers{"$path|$_"} = { label => $_, verbatim => $verbatim, path => $path, icons => $icon, descr => $descr, flags => $l = [] }; + /^(.*?)\s*\[selected=(.*?)\](.*)/ and $_ = "$1$3", $selected = $2; + $compssUsers{"$path|$_"} = { label => $_, verbatim => $verbatim, + path => $path, icons => $icon, descr => $descr, + if_(defined $selected, selected => [ split /[\s,]+/, $selected ]), flags => $l = [] }; push @sorted, "$path|$_"; } elsif (/^\s+(.*?)\s*$/) { push @$l, $1; -- cgit v1.2.1