summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-21 21:25:46 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-21 21:25:46 +0000
commit7bde69c12ac9d356b051d0a63ef650092860a3d8 (patch)
tree473d5248d6dd480ac3991bd4a0e021be0dee14f8
parentfc1ca5e597fde6ae0f12ffe0eb6af3a4277075ee (diff)
downloaddrakx-7bde69c12ac9d356b051d0a63ef650092860a3d8.tar
drakx-7bde69c12ac9d356b051d0a63ef650092860a3d8.tar.gz
drakx-7bde69c12ac9d356b051d0a63ef650092860a3d8.tar.bz2
drakx-7bde69c12ac9d356b051d0a63ef650092860a3d8.tar.xz
drakx-7bde69c12ac9d356b051d0a63ef650092860a3d8.zip
workaround "traverse_tag" pb in Resolve.pm resolve_requested (is it ok??)
-rw-r--r--perl-install/install_any.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 50bb10e62..4b701f5a8 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -160,10 +160,12 @@ sub setup_postinstall_rpms($$) {
my %toCopy;
#- compute closure of package that may be copied, use INSTALL category
#- in rpmsrate.
+ $packages->{rpmdb} ||= pkgs::rpmDbOpen($prefix);
foreach (@{$packages->{needToCopy} || []}) {
my $p = pkgs::packageByName($packages, $_) or next;
pkgs::selectPackage($packages, $p, 0, \%toCopy);
}
+ delete $packages->{rpmdb};
my @toCopy = grep { $_ && !$_->flag_selected } map { $packages->{depslist}[$_] } keys %toCopy;