summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/pkgs.pm7
1 files 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;