diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-06-11 19:09:08 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-06-11 19:09:08 +0000 |
commit | 4ace78714b28082a9dba1f27cb6206733d68e885 (patch) | |
tree | f379ac1d8599c8c7d0ae57dd38326e48867546d8 /perl-install/install/any.pm | |
parent | 814fe268adb93f447ad52fd9a0875c3fefe6fa23 (diff) | |
download | drakx-4ace78714b28082a9dba1f27cb6206733d68e885.tar drakx-4ace78714b28082a9dba1f27cb6206733d68e885.tar.gz drakx-4ace78714b28082a9dba1f27cb6206733d68e885.tar.bz2 drakx-4ace78714b28082a9dba1f27cb6206733d68e885.tar.xz drakx-4ace78714b28082a9dba1f27cb6206733d68e885.zip |
(setPackages) call clean_rpmdb_shared_regions() early thus fixing upgrade with rpm-4.10.0:
"error: db5 error (-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db5 - (-30969)
error: cannot open Packages database in /mnt/var/lib/rpm/"
Diffstat (limited to 'perl-install/install/any.pm')
-rw-r--r-- | perl-install/install/any.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index 433181f76..2208d84e4 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -314,6 +314,10 @@ sub setPackages { require install::pkgs; { + #- clean shared regions very early + # (configure_media will open rpmdb for listing existing pubkeys, + # which may fail when rpm version mistmatches between drakx & chrooted env) + install::pkgs::clean_rpmdb_shared_regions(); $o->{packages} = install::pkgs::empty_packages($o->{keep_unrequested_dependencies}); my $media = $o->{media} || [ { type => 'media_cfg', url => 'drakx://media' } ]; |