diff options
Diffstat (limited to 'lib/MDV')
-rw-r--r-- | lib/MDV/Draklive/Live.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MDV/Draklive/Live.pm b/lib/MDV/Draklive/Live.pm index f356b33..c8618ee 100644 --- a/lib/MDV/Draklive/Live.pm +++ b/lib/MDV/Draklive/Live.pm @@ -9,7 +9,8 @@ sub new { sub get_name { my ($live) = @_; - join('-', grep { $_ } @{$live->{settings}}{qw(name product version desktop region media arch)}); + my $fields = $live->{name_fields} || [ qw(name product version desktop region media arch) ]; + join('-', grep { $_ } @{$live->{settings}}{@$fields}); } sub get_builddir { |