summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-09-02 13:54:50 +0000
committerFrancois Pons <fpons@mandriva.com>2002-09-02 13:54:50 +0000
commita4127cab99851dadd4fc60f92f6cb5ee264ff432 (patch)
tree58a6e92132e37018bb4eb83826640a49dbaeec08
parent98f6b7b006e9f1342171ab775d0f1e5529ac7834 (diff)
downloaddrakx-a4127cab99851dadd4fc60f92f6cb5ee264ff432.tar
drakx-a4127cab99851dadd4fc60f92f6cb5ee264ff432.tar.gz
drakx-a4127cab99851dadd4fc60f92f6cb5ee264ff432.tar.bz2
drakx-a4127cab99851dadd4fc60f92f6cb5ee264ff432.tar.xz
drakx-a4127cab99851dadd4fc60f92f6cb5ee264ff432.zip
allow selecting packages to upgrade.
-rw-r--r--perl-install/crypto.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/crypto.pm b/perl-install/crypto.pm
index c9ef09f04..56fd10a9e 100644
--- a/perl-install/crypto.pm
+++ b/perl-install/crypto.pm
@@ -146,6 +146,10 @@ sub getPackages {
$update_medium->{selected} = 1;
$update_medium->{update} = 1;
+ #- search for packages to update.
+ $packages->{rpmdb} ||= pkgs::rpmDbOpen($o->{prefix});
+ pkgs::selectPackagesToUpgrade($packages, $prefix, $update_medium);
+
return $update_medium;
}