summaryrefslogtreecommitdiffstats
path: root/globetrotter
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-05-25 08:36:46 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-05-25 08:36:46 +0000
commit9867e52c6bb4df6ecf05b134f605c303eee51e0b (patch)
tree4374e7a0bb02ada5e9f315c964274207b3ff0444 /globetrotter
parent5ef8a8df8100deeb736324ce7f8ea43281d2ec61 (diff)
downloaddrakx-backup-do-not-use-9867e52c6bb4df6ecf05b134f605c303eee51e0b.tar
drakx-backup-do-not-use-9867e52c6bb4df6ecf05b134f605c303eee51e0b.tar.gz
drakx-backup-do-not-use-9867e52c6bb4df6ecf05b134f605c303eee51e0b.tar.bz2
drakx-backup-do-not-use-9867e52c6bb4df6ecf05b134f605c303eee51e0b.tar.xz
drakx-backup-do-not-use-9867e52c6bb4df6ecf05b134f605c303eee51e0b.zip
handle smoothly packages partition with multiple kernel packages
Diffstat (limited to 'globetrotter')
-rwxr-xr-xglobetrotter/make_live4
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();