From 4ace78714b28082a9dba1f27cb6206733d68e885 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 11 Jun 2012 19:09:08 +0000 Subject: (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/" --- perl-install/install/NEWS | 1 + perl-install/install/any.pm | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 50023252e..24f92f38d 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,4 @@ +- fix upgrade with rpm-4.10.0 - really fix build with brltty-4.3 Version 14.27 - 7 June 2012 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' } ]; -- cgit v1.2.1