From 9867e52c6bb4df6ecf05b134f605c303eee51e0b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 25 May 2005 08:36:46 +0000 Subject: handle smoothly packages partition with multiple kernel packages --- globetrotter/make_live | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'globetrotter/make_live') diff --git a/globetrotter/make_live b/globetrotter/make_live index 52ed394f8..6b53ebcad 100755 --- a/globetrotter/make_live +++ b/globetrotter/make_live @@ -176,8 +176,8 @@ sub installPackages() { #my @l = glob_('/export/Mandrake/RPMS/kernel-enterprise-2.6*'); my @l = glob_('/export/Mandrake/RPMS/kernel-2.6*'); @l >= 1 or die "can't find kernel"; - @l <= 1 or die "too many kernels"; - first(`rpm -qp --qf '%{name}' $l[0]` =~ /kernel-(.*)/); + @l <= 1 or warn "too many kernels"; + first(`rpm -qp --qf '%{name}' $l[-1]` =~ /kernel-(.*)/); }; my $kernel_version = c::kernel_version(); -- cgit v1.2.1