diff options
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r-- | urpm/main_loop.pm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index 6f0d702f..790cdffd 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -83,19 +83,17 @@ my @errors; my $exit_code = 0; foreach my $set (@{$state->{transaction} || []}) { - my $transaction_sources = {}; - my @transaction_list; #- put a blank line to separate with previous transaction or user question. print "\n" if $options{verbose} >= 0; - #- prepare transaction... - urpm::install::prepare_transaction($urpm, $set, $list, \%sources, \@transaction_list, $transaction_sources); + my ($transaction_list, $transaction_sources) = + urpm::install::prepare_transaction($urpm, $set, $list, \%sources); #- first, filter out what is really needed to download for this small transaction. my @error_sources; urpm::get_pkgs::download_packages_of_distant_media($urpm, - \@transaction_list, + $transaction_list, $transaction_sources, \@error_sources, quiet => $options{verbose} < 0, |