diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-05-25 08:36:46 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-05-25 08:36:46 +0000 |
commit | 9867e52c6bb4df6ecf05b134f605c303eee51e0b (patch) | |
tree | 4374e7a0bb02ada5e9f315c964274207b3ff0444 /globetrotter/make_live | |
parent | 5ef8a8df8100deeb736324ce7f8ea43281d2ec61 (diff) | |
download | drakx-9867e52c6bb4df6ecf05b134f605c303eee51e0b.tar drakx-9867e52c6bb4df6ecf05b134f605c303eee51e0b.tar.gz drakx-9867e52c6bb4df6ecf05b134f605c303eee51e0b.tar.bz2 drakx-9867e52c6bb4df6ecf05b134f605c303eee51e0b.tar.xz drakx-9867e52c6bb4df6ecf05b134f605c303eee51e0b.zip |
handle smoothly packages partition with multiple kernel packages
Diffstat (limited to 'globetrotter/make_live')
-rwxr-xr-x | globetrotter/make_live | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |