summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-08-31 16:44:58 +0000
committerThierry Vignaud <tv@mageia.org>2012-08-31 16:44:58 +0000
commit1996fe6cc924162a321a4a2cc688df611b105253 (patch)
tree903578e1452f7af8167ff34425232f033f97f6eb
parent6a91695cbe85fb81a4833ed3be293908a239e9c6 (diff)
downloadurpmi-1996fe6cc924162a321a4a2cc688df611b105253.tar
urpmi-1996fe6cc924162a321a4a2cc688df611b105253.tar.gz
urpmi-1996fe6cc924162a321a4a2cc688df611b105253.tar.bz2
urpmi-1996fe6cc924162a321a4a2cc688df611b105253.tar.xz
urpmi-1996fe6cc924162a321a4a2cc688df611b105253.zip
(prepare_transaction) drop unused parameter
-rw-r--r--urpm/install.pm2
-rw-r--r--urpm/main_loop.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index 9a86f341..770d6ad9 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -28,7 +28,7 @@ sub _hash_intersect_list {
}
sub prepare_transaction {
- my ($_urpm, $set, $blists, $sources) = @_;
+ my ($set, $blists, $sources) = @_;
my @blists_subset = map {
+{ %$_, pkgs => _hash_intersect_list($_->{pkgs}, $set->{upgrade}) };
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index c0ca6f0b..cbffd911 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -355,7 +355,7 @@ sub run {
$urpm->{print}("\n") if $options{verbose} >= 0;
my ($transaction_blists, $transaction_sources) =
- urpm::install::prepare_transaction($urpm, $set, $blists, \%sources);
+ urpm::install::prepare_transaction($set, $blists, \%sources);
#- first, filter out what is really needed to download for this small transaction.
my ($error_sources, $msgs) = _download_packages($urpm, $callbacks, $transaction_blists, $transaction_sources);