diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-10-28 20:24:15 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-10-28 20:24:15 +0000 |
commit | 218b22da76f5ebc2d954813246c8822c38685ed4 (patch) | |
tree | 25330306bd8de7a9c0fdab848435dd84ea9f3822 /lib/MDV | |
parent | c3327e6b1a783c8afee54c5ccd2b5d44afdba66b (diff) | |
download | drakiso-218b22da76f5ebc2d954813246c8822c38685ed4.tar drakiso-218b22da76f5ebc2d954813246c8822c38685ed4.tar.gz drakiso-218b22da76f5ebc2d954813246c8822c38685ed4.tar.bz2 drakiso-218b22da76f5ebc2d954813246c8822c38685ed4.tar.xz drakiso-218b22da76f5ebc2d954813246c8822c38685ed4.zip |
move get_builddir and get_system_root as methods in MDV::Draklive::Live object
Diffstat (limited to 'lib/MDV')
-rw-r--r-- | lib/MDV/Draklive/Live.pm | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Live.pm b/lib/MDV/Draklive/Live.pm index 7d5a3fd..25ec4c2 100644 --- a/lib/MDV/Draklive/Live.pm +++ b/lib/MDV/Draklive/Live.pm @@ -12,4 +12,14 @@ sub get_name { 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; |