From ca0f1022f81d93954d9a042a09b2ad5a97110a1f Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 17 Nov 2008 15:17:34 +0000 Subject: add extension when listing selected loopbacks --- draklive | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/draklive b/draklive index e72e638..f76e671 100755 --- a/draklive +++ b/draklive @@ -424,9 +424,10 @@ sub create_loopback_files { sub list_selected_loopbacks { my ($live) = @_; + my @pack = $live->{settings}{pack} ? @{$live->{packs}{$live->{settings}{pack}} || []} : (); + my @pack_modules = grep { member($_->{name}, @pack) } list_loopback_modules($live); (map { $loop_types{$_->{type}}{is_loopback} && $_->{path} ? $_->{path} . $loop_types{$_->{type}}{extension} : () } @{$live->{mount}{dirs} || []}), - (map { $live->{prefix}{build}{modules} . '/' . $_ } - $live->{settings}{pack} ? @{$live->{packs}{$live->{settings}{pack}} || []} : ()); + (map { $live->{prefix}{build}{modules} . '/' . $_->{name} . $loop_types{$_->{type}}{extension} } @pack_modules); } sub get_media_device { -- cgit v1.2.1