diff options
author | Olivier Blin <blino@mageia.org> | 2011-05-27 21:53:23 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2011-05-27 21:53:23 +0000 |
commit | 29cb84b3461f09f4476c4422292e40b4ec5f05a0 (patch) | |
tree | 8b431c1546368370a8729db86ac0a65bcc6f2783 | |
parent | de552e4b99c5c66cce0afc586fb59d9a22376148 (diff) | |
download | draklive-29cb84b3461f09f4476c4422292e40b4ec5f05a0.tar draklive-29cb84b3461f09f4476c4422292e40b4ec5f05a0.tar.gz draklive-29cb84b3461f09f4476c4422292e40b4ec5f05a0.tar.bz2 draklive-29cb84b3461f09f4476c4422292e40b4ec5f05a0.tar.xz draklive-29cb84b3461f09f4476c4422292e40b4ec5f05a0.zip |
add a -<set> suffix to chroot/build directories if live->{settings}{set} is defined
-rw-r--r-- | lib/MDV/Draklive/Live.pm | 9 |
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 { |