aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-21 10:37:40 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-21 10:37:40 +0000
commite47c818be52fc8efcfbe452f0c17135b153bb6bd (patch)
treeca66d8d418eee7ea08e16acf206ddbac81d80bc4
parent6f683d7ca438ffb664bf791609f0d50ff21bcbcc (diff)
downloadrpmdrake-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-xrpmdrake10
1 files changed, 1 insertions, 9 deletions
diff --git a/rpmdrake b/rpmdrake
index 2fba77a0..b7309d58 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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",