diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-09-09 08:06:28 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-09-09 08:06:28 +0000 |
commit | d8cf4a35e631ca6ca54c18d247a5283cbb9bfcc4 (patch) | |
tree | 1a53003791e480bee0d0d7bc1be15eb0b16f3c4d /urpm/main_loop.pm | |
parent | 740c2e83717643482caf3ba4133c5cf83b07563f (diff) | |
download | urpmi-d8cf4a35e631ca6ca54c18d247a5283cbb9bfcc4.tar urpmi-d8cf4a35e631ca6ca54c18d247a5283cbb9bfcc4.tar.gz urpmi-d8cf4a35e631ca6ca54c18d247a5283cbb9bfcc4.tar.bz2 urpmi-d8cf4a35e631ca6ca54c18d247a5283cbb9bfcc4.tar.xz urpmi-d8cf4a35e631ca6ca54c18d247a5283cbb9bfcc4.zip |
- urpmi
o after installing in chroot, migrate back rpmdb db version to one
compatible with the rpm in the chroot
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r-- | urpm/main_loop.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index 9cf8ab99..d7fbb504 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -82,6 +82,9 @@ my ($ok, $nok) = (0, 0); my @errors; my $exit_code = 0; +my $migrate_back_rpmdb_db_version = + $urpm->{root} && urpm::select::should_we_migrate_back_rpmdb_db_version($urpm, $state); + foreach my $set (@{$state->{transaction} || []}) { #- put a blank line to separate with previous transaction or user question. @@ -275,6 +278,10 @@ foreach my $set (@{$state->{transaction} || []}) { } } +if ($migrate_back_rpmdb_db_version) { + urpm::sys::migrate_back_rpmdb_db_version($urpm, $urpm->{root}); +} + $callbacks->{completed} and $callbacks->{completed}->(); if ($nok) { |