From d3af2ecf27b7d2760d558a3b65b3c2303e9ad48a Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 28 Oct 2008 20:39:21 +0000 Subject: inline code --- draklive | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/draklive b/draklive index 19c6fa6..ddceb98 100755 --- a/draklive +++ b/draklive @@ -385,9 +385,7 @@ sub need_media_specific_boot { sub create_media_initrd { my ($live) = @_; - foreach ($live->{media}) { - create_initrd_for_media($live, $_); - } + create_initrd_for_media($live, $live->{media}); cp_f($live->get_builddir . $live->{prefix}{build}{boot} . get_initrd_path($live->{media}), $live->{copy_initrd}) if $live->{copy_initrd}; } @@ -1141,12 +1139,10 @@ $live->{media}{title} )); - foreach my $media ($live->{media}) { - foreach my $boot ('', @{$media->{extra_boot}}) { - my $opts = { boot => $boot }; - output($live->get_builddir . $live->{prefix}{build}{boot} . get_syslinux_path($media, $opts), - build_syslinux_cfg($live, $media, $opts)); - } + foreach my $boot ('', @{$live->{media}{extra_boot}}) { + my $opts = { boot => $boot }; + output($live->get_builddir . $live->{prefix}{build}{boot} . get_syslinux_path($live->{media}, $opts), + build_syslinux_cfg($live, $live->{media}, $opts)); } } -- cgit v1.2.1