From 8064711a423236c38aa33e336a4e4e16be11a6e5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 3 Apr 2008 08:59:12 +0000 Subject: - when computed install size in group selection (#39303) (it didn't take suggests into account) --- perl-install/install/NEWS | 3 +++ perl-install/install/pkgs.pm | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 6ac2b1551..8d5aa8cc0 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,6 @@ +- when computed install size in group selection (#39303) + (it didn't take suggests into account) + Version 10.27 - 3 April 2008 - 2008.1 logo (the good one) diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index f8dbd9451..1b7b671d9 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -504,8 +504,8 @@ sub computeGroupSize { $newSelection{$id} = undef; my $pkg = $packages->{depslist}[$id]; - my @requires = map { [ $_, keys %{$packages->{provides}{$_} || {}} ] } $pkg->requires_nosense; - foreach (sort { @$a <=> @$b } @requires) { #- sort on number of provides (it helps choosing "b" in: "a" requires both "b" and virtual={"b","c"}) + my @deps = map { [ $_, keys %{$packages->{provides}{$_} || {}} ] } $pkg->requires_nosense, $pkg->suggests; + foreach (sort { @$a <=> @$b } @deps) { #- sort on number of provides (it helps choosing "b" in: "a" requires both "b" and virtual={"b","c"}) my ($virtual, @choices) = @$_; if (@choices <= 1) { #- only one choice :) -- cgit v1.2.1