summaryrefslogtreecommitdiffstats
path: root/urpm/main_loop.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2014-06-16 19:35:01 +0000
committerPascal Terjan <pterjan@gmail.com>2014-06-16 19:35:01 +0000
commit2b39a66f6bdd101e3a3f75aa58e9a1887a3db34f (patch)
treea4c0254cf9cdf3a0998b8ad485691b95dafbc40e /urpm/main_loop.pm
parent68158f19448bf1bda5dee659179f6865fe032ab2 (diff)
downloadurpmi-2b39a66f6bdd101e3a3f75aa58e9a1887a3db34f.tar
urpmi-2b39a66f6bdd101e3a3f75aa58e9a1887a3db34f.tar.gz
urpmi-2b39a66f6bdd101e3a3f75aa58e9a1887a3db34f.tar.bz2
urpmi-2b39a66f6bdd101e3a3f75aa58e9a1887a3db34f.tar.xz
urpmi-2b39a66f6bdd101e3a3f75aa58e9a1887a3db34f.zip
fix some warnings with perl 5.20
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r--urpm/main_loop.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index a010bc76..fa574ea8 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -229,7 +229,7 @@ sub _init_common_options {
sub _log_installing {
my ($urpm, $transaction_sources_install, $transaction_sources) = @_;
- if (my @packnames = (values $transaction_sources_install, values $transaction_sources)) {
+ if (my @packnames = (values %$transaction_sources_install, values %$transaction_sources)) {
(my $common_prefix) = $packnames[0] =~ m!^(.*)/!;
if (length($common_prefix) && @packnames == grep { m!^\Q$common_prefix/! } @packnames) {
#- there's a common prefix, simplify message
@@ -242,7 +242,7 @@ sub _log_installing {
sub _run_parallel_transaction {
my ($urpm, $state, $transaction_sources, $transaction_sources_install) = @_;
- $urpm->{print}(N("distributing %s", join(' ', values $transaction_sources_install, values $transaction_sources)));
+ $urpm->{print}(N("distributing %s", join(' ', values %$transaction_sources_install, values %$transaction_sources)));
#- no remove are handle here, automatically done by each distant node.
$urpm->{log}("starting distributed install");
$urpm->{parallel_handler}->parallel_install(