summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-08-20 14:54:54 +0000
committerFrancois Pons <fpons@mandriva.com>2002-08-20 14:54:54 +0000
commit538ca0ce0f3c6b9ad22ce0902d509f96ecb34965 (patch)
tree9a5c6a16a4168859e359c31b6d6d244f3a669db2 /perl-install/install_any.pm
parent2e63b0cb0921be02a758b503ade2657139ab3b4f (diff)
downloaddrakx-backup-do-not-use-538ca0ce0f3c6b9ad22ce0902d509f96ecb34965.tar
drakx-backup-do-not-use-538ca0ce0f3c6b9ad22ce0902d509f96ecb34965.tar.gz
drakx-backup-do-not-use-538ca0ce0f3c6b9ad22ce0902d509f96ecb34965.tar.bz2
drakx-backup-do-not-use-538ca0ce0f3c6b9ad22ce0902d509f96ecb34965.tar.xz
drakx-backup-do-not-use-538ca0ce0f3c6b9ad22ce0902d509f96ecb34965.zip
make sure kernel is selected during upgrade.
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index e9c0a3dc2..c5abc334b 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -314,6 +314,11 @@ sub setPackages {
pkgs::selectPackage($o->{packages},
pkgs::packageByName($o->{packages}, 'basesystem') || die("missing basesystem package"), 1);
+ #- always try to select basic kernel (else on upgrade, kernel will never be updated provided a kernel is already
+ #- installed and provides what is necessary).
+ pkgs::selectPackage($o->{packages},
+ pkgs::bestKernelPackage($o->{packages}) || die("missing kernel package"), 1);
+
#- must be done after selecting base packages (to save memory)
pkgs::getProvides($o->{packages});