summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MDV/Draklive')
-rw-r--r--lib/MDV/Draklive/Live.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/MDV/Draklive/Live.pm b/lib/MDV/Draklive/Live.pm
index c8618ee..64c0cad 100644
--- a/lib/MDV/Draklive/Live.pm
+++ b/lib/MDV/Draklive/Live.pm
@@ -13,14 +13,19 @@ sub get_name {
join('-', grep { $_ } @{$live->{settings}}{@$fields});
}
+sub get_set_suffix {
+ my ($live) = @_;
+ $live->{settings}{set} ? "-$live->{settings}{set}" : "";
+}
+
sub get_builddir {
my ($live) = @_;
- $live->{settings}{builddir} . '/' . $live->get_name;
+ $live->{settings}{builddir} . '/' . $live->get_name . $live->get_set_suffix;
}
sub get_system_root {
my ($live) = @_;
- $live->{settings}{chroot} . '/' . $live->get_name;
+ $live->{settings}{chroot} . '/' . $live->get_name . $live->get_set_suffix;
}
sub get_media_prefix {