diff options
author | Francois Pons <fpons@mandriva.com> | 2000-05-09 12:53:52 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-05-09 12:53:52 +0000 |
commit | eaab7cc1260043e18b6697756a19d7331055f589 (patch) | |
tree | 064209a70a288e1a06ec4d2775b511ca3cf79757 /perl-install/pkgs.pm | |
parent | 164e94e201e9d49ab9464fc737dfcfbc43f6e596 (diff) | |
download | drakx-eaab7cc1260043e18b6697756a19d7331055f589.tar drakx-eaab7cc1260043e18b6697756a19d7331055f589.tar.gz drakx-eaab7cc1260043e18b6697756a19d7331055f589.tar.bz2 drakx-eaab7cc1260043e18b6697756a19d7331055f589.tar.xz drakx-eaab7cc1260043e18b6697756a19d7331055f589.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r-- | perl-install/pkgs.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index f591e9bbb..9c745a1f2 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -177,7 +177,11 @@ sub invCorrectSize { min($_[0], (sqrt(sqr($B) + 4 * $A * ($_[0] - $C)) - $B) / 2 sub selectedSize { my ($packages) = @_; - int (sum map { packageSize($_) - ($_->{installedCumulSize} || 0) } grep { packageFlagSelected($_) } values %{$packages->[0]}); + my $size = 0; + foreach (values %{$packages->[0]}) { + packageFlagSelected($_) && !packageFlagInstalled($_) and $size += packageSize($_) - ($_->{installedCumulSize} || 0); + } + $size; } sub correctedSelectedSize { correctSize(selectedSize($_[0]) / sqr(1024)) } |