summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-04-04 21:48:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-04-04 21:48:07 +0000
commite8c5653452f2e8e78ee0caeb5fb17eb2546d3db7 (patch)
tree7c67ba593ecaa2051b2379e9dc2631a2410db57f /perl-install/pkgs.pm
parented397ae6c850fc1f196a7cbdd825bbef5e89f59b (diff)
downloaddrakx-backup-do-not-use-e8c5653452f2e8e78ee0caeb5fb17eb2546d3db7.tar
drakx-backup-do-not-use-e8c5653452f2e8e78ee0caeb5fb17eb2546d3db7.tar.gz
drakx-backup-do-not-use-e8c5653452f2e8e78ee0caeb5fb17eb2546d3db7.tar.bz2
drakx-backup-do-not-use-e8c5653452f2e8e78ee0caeb5fb17eb2546d3db7.tar.xz
drakx-backup-do-not-use-e8c5653452f2e8e78ee0caeb5fb17eb2546d3db7.zip
no_comment
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index e4c2579e1..04813bd8c 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -34,6 +34,7 @@ use c;
-20 => __("i18n (very nice)"), #- every beginner/custom install in the corresponding lang have theses packages
-30 => __("i18n (nice)"),
);
+#- HACK: rating += 50 for some packages (like kapm, cf install_any::setPackages)
#- HACK: rating += 10 if the group is selected and it is not a kde package (aka name !~ /^k/)
@@ -494,11 +495,11 @@ sub setSelectedFromCompssList {
#- determine the packages that will be selected when
#- selecting $p. the packages are not selected.
my %newSelection;
- selectPackage($packages, $p, \%newSelection);
+ selectPackage($packages, $p, 0, \%newSelection);
#- this enable an incremental total size.
- foreach (values %newSelection) {
- $nb += packageSize($_);
+ foreach (grep { $newSelection{$_} } keys %newSelection) {
+ $nb += packageSize($packages->[0]{$_});
}
if ($max_size && $nb > $max_size) {
$min_level = $p->{values}[$ind];