summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-08-26 13:08:06 +0000
committerFrancois Pons <fpons@mandriva.com>2003-08-26 13:08:06 +0000
commit18dc1bd21449a25331baf6adc754ee00b1465fab (patch)
tree102d478189b8bea2663672776702b55ff994791e /perl-install/pkgs.pm
parent8920ce5a7c0c153d16d6f83eb97053d385c667cf (diff)
downloaddrakx-backup-do-not-use-18dc1bd21449a25331baf6adc754ee00b1465fab.tar
drakx-backup-do-not-use-18dc1bd21449a25331baf6adc754ee00b1465fab.tar.gz
drakx-backup-do-not-use-18dc1bd21449a25331baf6adc754ee00b1465fab.tar.bz2
drakx-backup-do-not-use-18dc1bd21449a25331baf6adc754ee00b1465fab.tar.xz
drakx-backup-do-not-use-18dc1bd21449a25331baf6adc754ee00b1465fab.zip
get selected list from compssUsers for readCompssUsers.
Diffstat (limited to 'perl-install/pkgs.pm')
-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;