summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2021-10-31 04:51:34 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2021-10-31 05:38:18 +0100
commit3703d95e9871794ff4a9594d4f3c852f119201cc (patch)
treebf914458361b6745d68b493af6acb10ff5947d7a /urpm
parent251676561b5cc8b47d525813ef7555a6e363eeb6 (diff)
downloadurpmi-3703d95e9871794ff4a9594d4f3c852f119201cc.tar
urpmi-3703d95e9871794ff4a9594d4f3c852f119201cc.tar.gz
urpmi-3703d95e9871794ff4a9594d4f3c852f119201cc.tar.bz2
urpmi-3703d95e9871794ff4a9594d4f3c852f119201cc.tar.xz
urpmi-3703d95e9871794ff4a9594d4f3c852f119201cc.zip
(migrate_forward_rpmdb_db_if_needed) Kill useless arg
Diffstat (limited to 'urpm')
-rw-r--r--urpm/main_loop.pm2
-rw-r--r--urpm/select.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index 6e4820ab..b9c8bdc9 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -497,7 +497,7 @@ sub run {
my (@errors, @formatted_errors);
$exit_code = 0;
- urpm::select::migrate_forward_rpmdb_db_if_needed($urpm, $state);
+ urpm::select::migrate_forward_rpmdb_db_if_needed($urpm);
my $migrate_back_rpmdb_db_version =
$urpm->{root} && urpm::select::should_we_migrate_back_rpmdb_db_version($urpm, $state);
diff --git a/urpm/select.pm b/urpm/select.pm
index 57bde8aa..4e17f616 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -757,7 +757,7 @@ sub should_we_migrate_back_rpmdb_db_version {
}
sub migrate_forward_rpmdb_db_if_needed {
- my ($urpm, $state) = @_;
+ my ($urpm) = @_;
my ($pkg) = $urpm->packages_providing('rpm') or return;
my $rooted_rpm_version = version->new("v" . $pkg->version); # perl_checker: $self = revision