summaryrefslogtreecommitdiffstats
path: root/kernel/update_kernel
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-01-12 17:59:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-01-12 17:59:02 +0000
commitc80918dccee76d2b631b4f9839ed1052b708178c (patch)
treef3f9cd3c6710578753f4aeba0442789f841ea927 /kernel/update_kernel
parent14fce60b6469ebf3bec3644ecdc6f165b41a3e40 (diff)
downloaddrakx-backup-do-not-use-c80918dccee76d2b631b4f9839ed1052b708178c.tar
drakx-backup-do-not-use-c80918dccee76d2b631b4f9839ed1052b708178c.tar.gz
drakx-backup-do-not-use-c80918dccee76d2b631b4f9839ed1052b708178c.tar.bz2
drakx-backup-do-not-use-c80918dccee76d2b631b4f9839ed1052b708178c.tar.xz
drakx-backup-do-not-use-c80918dccee76d2b631b4f9839ed1052b708178c.zip
don't die when we can't update_kernel_from_repository
Diffstat (limited to 'kernel/update_kernel')
-rwxr-xr-xkernel/update_kernel2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/update_kernel b/kernel/update_kernel
index 445ebca00..01b1bca66 100755
--- a/kernel/update_kernel
+++ b/kernel/update_kernel
@@ -40,7 +40,7 @@ sub update_kernel_from_repository {
my $rpm_wildcard = 'kernel-' . ($is_BOOT ? 'BOOT-' : '') . $main_ver . '*.rpm';
my ($kernel_rpm) = my @kernels = glob("$RPMS/$rpm_wildcard");
@kernels <= 1 or die "more than one kernel match $rpm_wildcard";
- @kernels >= 1 or die "no kernel match $rpm_wildcard";
+ @kernels >= 1 or return; # die "no kernel match $rpm_wildcard";
install_kernel($kernel_rpm, 1);
}