diff options
Diffstat (limited to 'perl-install/install_steps_gtk.pm')
-rw-r--r-- | perl-install/install_steps_gtk.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/install_steps_gtk.pm b/perl-install/install_steps_gtk.pm index 0a68e27ec..34447fbc9 100644 --- a/perl-install/install_steps_gtk.pm +++ b/perl-install/install_steps_gtk.pm @@ -404,11 +404,13 @@ sub choosePackagesTree { my ($root, $leaf); if ($flat = $_[0]) { - $add_node->($_, undef) foreach sort keys %{$packages->[0]}; + $add_node->($_, undef) foreach sort grep { my $pkg = pkgs::packageByName($packages, $_); + $pkg->{medium}{selected} } keys %{$packages->[0]}; } else { foreach (sort @$compss) { ($root, $leaf) = m|(.*)/(.+)|o or ($root, $leaf) = ('', $_); - $add_node->($leaf, $root); + my $pkg = pkgs::packageByName($packages, $leaf); + $add_node->($leaf, $root) if $pkg->{medium}{selected}; } } $tree->thaw; |