diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-12-21 10:37:40 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-12-21 10:37:40 +0000 |
commit | e47c818be52fc8efcfbe452f0c17135b153bb6bd (patch) | |
tree | ca66d8d418eee7ea08e16acf206ddbac81d80bc4 | |
parent | 6f683d7ca438ffb664bf791609f0d50ff21bcbcc (diff) | |
download | rpmdrake-e47c818be52fc8efcfbe452f0c17135b153bb6bd.tar rpmdrake-e47c818be52fc8efcfbe452f0c17135b153bb6bd.tar.gz rpmdrake-e47c818be52fc8efcfbe452f0c17135b153bb6bd.tar.bz2 rpmdrake-e47c818be52fc8efcfbe452f0c17135b153bb6bd.tar.xz rpmdrake-e47c818be52fc8efcfbe452f0c17135b153bb6bd.zip |
Correctly compute the number of rpms to be retrieved
-rwxr-xr-x | rpmdrake | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -1377,15 +1377,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( my %pkgs = map { $_->id => undef } grep { $_->flag_selected } @{$urpm->{depslist}}; my ($local_sources, $list, $local_to_removes) = $urpm->get_source_packages(\%pkgs); - my $distant_number; - foreach my $l (@$list) { - foreach (sort values %$l) { - my $showable = $_; - $showable =~ s|([^:]*://[^/:\@]*:)[^/:\@]*(\@.*)|$1xxxx$2|; #- hide password - standalone::explanations("Installing package $showable"); - /^(?:file:|removable:|\/)/ or $distant_number++; - } - } + my $distant_number = scalar keys %pkgs; if (!$local_sources && (!$list || !@$list)) { interactive_msg_(N("Unable to get source packages."), N("Unable to get source packages, sorry. %s", |