summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/Live.pm
blob: 25ec4c2db704169f5c9321acf77dd9e4c1411908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package MDV::Draklive::Live;

use MDK::Common;

sub new {
    my ($class) = @_;
    bless {}, $class;
}

sub get_name {
    my ($live) = @_;
    join('-', grep { $_ } @{$live->{settings}}{qw(name product version desktop region media arch)});
}

sub get_builddir {
    my ($live) = @_;
    $live->{settings}{builddir} . '/' . $live->get_name;
}

sub get_system_root {
    my ($live) = @_;
    $live->{settings}{chroot} . '/' . $live->get_name;
}

1;