diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-01-12 17:59:02 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-01-12 17:59:02 +0000 |
commit | c80918dccee76d2b631b4f9839ed1052b708178c (patch) | |
tree | f3f9cd3c6710578753f4aeba0442789f841ea927 | |
parent | 14fce60b6469ebf3bec3644ecdc6f165b41a3e40 (diff) | |
download | drakx-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
-rwxr-xr-x | kernel/update_kernel | 2 |
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); } |