summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-10-13 17:00:22 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-10-13 17:00:22 +0000
commit93eefdcec8aeef24e793653a4136bf4aeb2f1880 (patch)
tree49a701fba5b7fbe74b7f8dcb0042fd5d90e7e6a4
parente1b29be2e9dfeebc1d831c62b6e0dc1d1a6853dc (diff)
downloadurpmi-93eefdcec8aeef24e793653a4136bf4aeb2f1880.tar
urpmi-93eefdcec8aeef24e793653a4136bf4aeb2f1880.tar.gz
urpmi-93eefdcec8aeef24e793653a4136bf4aeb2f1880.tar.bz2
urpmi-93eefdcec8aeef24e793653a4136bf4aeb2f1880.tar.xz
urpmi-93eefdcec8aeef24e793653a4136bf4aeb2f1880.zip
perl_checker fixes
-rw-r--r--urpm/get_pkgs.pm2
-rw-r--r--urpm/main_loop.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/urpm/get_pkgs.pm b/urpm/get_pkgs.pm
index 1da874ca..635df9c9 100644
--- a/urpm/get_pkgs.pm
+++ b/urpm/get_pkgs.pm
@@ -167,7 +167,7 @@ sub verify_partial_rpm_and_move {
# get the filesize of packages to download from remote media.
sub get_distant_media_filesize {
- my ($urpm, $blists, $sources) = @_;
+ my (undef, $blists, $sources) = @_;
my $filesize;
#- get back all ftp and http accessible rpm files into the local cache
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index f6a5330f..dd519105 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -101,7 +101,7 @@ if ($urpm->{options}{'download-all'}) {
my (undef, $available) = urpm::sys::df("$urpm->{cachedir}/rpms");
if (!$urpm->{options}{ignoresize}) {
- my ($download_size) = urpm::get_pkgs::get_distant_media_filesize ($urpm, $blists, \%sources);
+ my ($download_size) = urpm::get_pkgs::get_distant_media_filesize($urpm, $blists, \%sources);
if ($download_size >= $available*1000) {
my $noexpr = N("Nn");
my $p = N("There is not enough space on your filesystem to download all packages (%s needed, %s available).\nAre you sure you want to continue?", formatXiB($download_size), formatXiB($available*1000));