summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-06 10:50:33 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-03-06 10:50:33 +0000
commit7892f9bb78b579fa587e2a89a2740230eeaca0e8 (patch)
treeda25fb456c8d91b66b701d1eca173c9d48df3af8
parente365e6307d45dedda0ddf14072b4b2ce14611d2e (diff)
downloadurpmi-7892f9bb78b579fa587e2a89a2740230eeaca0e8.tar
urpmi-7892f9bb78b579fa587e2a89a2740230eeaca0e8.tar.gz
urpmi-7892f9bb78b579fa587e2a89a2740230eeaca0e8.tar.bz2
urpmi-7892f9bb78b579fa587e2a89a2740230eeaca0e8.tar.xz
urpmi-7892f9bb78b579fa587e2a89a2740230eeaca0e8.zip
Patch by Titi to fix display of numbers when multiple transactions are involved in gurpmi
-rwxr-xr-xgurpmi22
1 files changed, 1 insertions, 1 deletions
diff --git a/gurpmi2 b/gurpmi2
index c5d91a42..dd37ca27 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -218,6 +218,7 @@ sub do_install_3 () {
split_length => $urpm->{options}{'split-length'},
);
my ($nok, @errors);
+ my $progress_nb;
foreach my $set (@{$state->{transaction} || []}) {
my (@transaction_list, %transaction_sources);
$urpm->prepare_transaction($set, $list, \%sources, \@transaction_list, \%transaction_sources);
@@ -262,7 +263,6 @@ sub do_install_3 () {
if (keys(%transaction_sources_install) || keys(%transaction_sources)) {
@{$set->{remove} || []} and
$progress_label->set_label(N("removing %s", join(' ', @{$set->{remove} || []})));
- my $progress_nb;
my $total_nb = scalar grep { m|^/| } values %transaction_sources_install, values %transaction_sources;
my $callback_inst = sub {
my ($urpm, $type, $id, $subtype, $amount, $total) = @_;