diff options
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/select.pm | 2 | ||||
-rw-r--r-- | urpm/sys.pm | 10 |
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); } } |