diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-06 10:50:33 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-03-06 10:50:33 +0000 |
commit | 7892f9bb78b579fa587e2a89a2740230eeaca0e8 (patch) | |
tree | da25fb456c8d91b66b701d1eca173c9d48df3af8 | |
parent | e365e6307d45dedda0ddf14072b4b2ce14611d2e (diff) | |
download | urpmi-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-x | gurpmi2 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) = @_; |