summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2021-10-31 04:19:09 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2021-10-31 05:38:18 +0100
commit251676561b5cc8b47d525813ef7555a6e363eeb6 (patch)
tree2635997ffa24636f0042b720e3cbf2538be2ff2e
parente2d0c0467fb8f5da527f38aa04b2288dbce00a4e (diff)
downloadurpmi-251676561b5cc8b47d525813ef7555a6e363eeb6.tar
urpmi-251676561b5cc8b47d525813ef7555a6e363eeb6.tar.gz
urpmi-251676561b5cc8b47d525813ef7555a6e363eeb6.tar.bz2
urpmi-251676561b5cc8b47d525813ef7555a6e363eeb6.tar.xz
urpmi-251676561b5cc8b47d525813ef7555a6e363eeb6.zip
Remove uneeded arg
-rw-r--r--urpm/select.pm2
-rw-r--r--urpm/sys.pm10
2 files changed, 6 insertions, 6 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index b77303ae..57bde8aa 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -769,7 +769,7 @@ sub migrate_forward_rpmdb_db_if_needed {
if (-f "$urpm->{root}/var/lib/rpm/Packages") {
$urpm->{debug} and $urpm->{debug}("Migrating chrooted db");
$urpm->{need_migrate_rpmdb_now} = '4.16';
- urpm::sys::migrate_forward_rpmdb_db_version($urpm, $urpm->{root});
+ urpm::sys::migrate_forward_rpmdb_db_version($urpm);
return 1;
}
}
diff --git a/urpm/sys.pm b/urpm/sys.pm
index ce2ab3ae..96683aa7 100644
--- a/urpm/sys.pm
+++ b/urpm/sys.pm
@@ -306,14 +306,14 @@ sub migrate_back_rpmdb_db_version {
clean_rpmdb_shared_regions($root);
}
-=item migrate_rpmdb_to_sqlite($urpm, $root)
+=item migrate_rpmdb_to_sqlite($urpm)
Migrate rpmdb to the new sqlite backend.
=cut
sub migrate_rpmdb_to_sqlite {
- my ($urpm, $root) = @_;
+ my ($urpm) = @_;
$urpm->{info}("migrating db from bdb to sqlite (rpm >= 4.16)");
# Whatever is the default backend:
URPM::add_macro('_db_backend sqlite');
@@ -324,7 +324,7 @@ sub migrate_rpmdb_to_sqlite {
}
}
-=item migrate_forward_rpmdb_db_version($urpm, $root)
+=item migrate_forward_rpmdb_db_version($urpm)
Check if we need to migrate rpmdb to a new backend prior to use it
and do it if needed.
@@ -332,10 +332,10 @@ and do it if needed.
=cut
sub migrate_forward_rpmdb_db_version {
- my ($urpm, $root) = @_;
+ my ($urpm) = @_;
if ($urpm->{need_migrate_rpmdb_now} eq '4.16') {
- migrate_rpmdb_to_sqlite($urpm, $root);
+ migrate_rpmdb_to_sqlite($urpm);
}
}