summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/Media.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-10-28 20:52:38 +0000
committerOlivier Blin <oblin@mandriva.com>2008-10-28 20:52:38 +0000
commit85be56b030be5e5dff618e21f8acc34ff238b89a (patch)
tree7e9874d53de055836b0ccf09d33c9539563cad07 /lib/MDV/Draklive/Media.pm
parentd056dbb5e6d9fac1ae32e43642f24be0c57c4007 (diff)
downloaddrakiso-85be56b030be5e5dff618e21f8acc34ff238b89a.tar
drakiso-85be56b030be5e5dff618e21f8acc34ff238b89a.tar.gz
drakiso-85be56b030be5e5dff618e21f8acc34ff238b89a.tar.bz2
drakiso-85be56b030be5e5dff618e21f8acc34ff238b89a.tar.xz
drakiso-85be56b030be5e5dff618e21f8acc34ff238b89a.zip
move get_media_label as method in MDV::Draklive::Media
Diffstat (limited to 'lib/MDV/Draklive/Media.pm')
-rw-r--r--lib/MDV/Draklive/Media.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Media.pm b/lib/MDV/Draklive/Media.pm
index a6242c1..6cd5d33 100644
--- a/lib/MDV/Draklive/Media.pm
+++ b/lib/MDV/Draklive/Media.pm
@@ -29,4 +29,9 @@ sub get_media_fs_module {
$fs eq 'iso9660' ? 'isofs' : $fs eq 'ext2' ? @{[]} : $fs;
}
+sub get_media_label {
+ my ($media) = @_;
+ first($media->get_media_setting('source') =~ /^LABEL=(.*)$/);
+}
+
1;