From e2cfeee002f8de124a1bc0acbf2f7740d3413d29 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 31 Aug 2012 16:45:43 +0000 Subject: (get_distant_media_filesize) kill unused parameter --- urpm/get_pkgs.pm | 4 ++-- urpm/main_loop.pm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/urpm/get_pkgs.pm b/urpm/get_pkgs.pm index 7f6bcc28..3326b7a1 100644 --- a/urpm/get_pkgs.pm +++ b/urpm/get_pkgs.pm @@ -179,14 +179,14 @@ sub verify_partial_rpm_and_move { } -=item get_distant_media_filesize(undef, $blists, $sources) +=item get_distant_media_filesize($blists, $sources) Get the filesize of packages to download from remote media. =cut sub get_distant_media_filesize { - my (undef, $blists, $sources) = @_; + my ($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 bd6e9e9b..65fa73c5 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -103,7 +103,7 @@ sub _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($blists, $sources); if ($download_size >= $available*1000) { 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)); $force || urpm::msg::ask_yes_or_no($p) or return 10; -- cgit v1.2.1