summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-21 17:49:20 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-21 17:49:20 +0000
commit2053a013097a00df964948bac30b35e19fd23d86 (patch)
treef8e51378506b02d106650be72310536a1a65e682
parent2d1b37f0ba3935b9793290041c54b6749e6d4fa2 (diff)
downloadurpmi-2053a013097a00df964948bac30b35e19fd23d86.tar
urpmi-2053a013097a00df964948bac30b35e19fd23d86.tar.gz
urpmi-2053a013097a00df964948bac30b35e19fd23d86.tar.bz2
urpmi-2053a013097a00df964948bac30b35e19fd23d86.tar.xz
urpmi-2053a013097a00df964948bac30b35e19fd23d86.zip
(sub migrate_back_rpmdb_db_to_hash_8) split it out of migrate_back_rpmdb_db_version()
(needed for next commit)
-rw-r--r--urpm/sys.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/urpm/sys.pm b/urpm/sys.pm
index 3e40151f..da0c26e7 100644
--- a/urpm/sys.pm
+++ b/urpm/sys.pm
@@ -236,7 +236,7 @@ sub print_need_restart() {
print "$_\n" foreach values %$h;
}
-sub migrate_back_rpmdb_db_version {
+sub migrate_back_rpmdb_db_to_hash_8 {
my ($urpm, $root) = @_;
$urpm->{info}("migrating back the created rpm db from Hash version 9 to Hash version 8");
@@ -252,6 +252,15 @@ sub migrate_back_rpmdb_db_version {
return;
}
}
+}
+
+sub migrate_back_rpmdb_db_version {
+ my ($urpm, $root) = @_;
+
+ if ($urpm->{need_migrate_rpmdb} eq '4.6') {
+ migrate_back_rpmdb_db_to_hash_8($urpm, $root);
+ }
+
clean_rpmdb_shared_regions($root);
}