diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-08 17:59:25 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-08 17:59:25 +0000 |
commit | ec49bc330577f2b7535ad658ab0608ecace5a9a2 (patch) | |
tree | d8e13b167269a5f89873ee5fe903b46112a0fddb /urpm/main_loop.pm | |
parent | c5dead167a9b7a2ab4e4e226283a379074e8a238 (diff) | |
download | urpmi-ec49bc330577f2b7535ad658ab0608ecace5a9a2.tar urpmi-ec49bc330577f2b7535ad658ab0608ecace5a9a2.tar.gz urpmi-ec49bc330577f2b7535ad658ab0608ecace5a9a2.tar.bz2 urpmi-ec49bc330577f2b7535ad658ab0608ecace5a9a2.tar.xz urpmi-ec49bc330577f2b7535ad658ab0608ecace5a9a2.zip |
urpm::install::prepare_transaction() now returns the computed values instead of
modifying the parameters
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, |