summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Distribconf.pm
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2006-09-01 01:32:21 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2006-09-01 01:32:21 +0000
commit0c87377b1650edc8b726b375edda0f7b00d96ee6 (patch)
tree382a4f10df5a70c4f8df46ee5306078926635c84 /lib/MDV/Distribconf.pm
parent50e39ef4b0a9ea513a934a572f99905260e0140d (diff)
downloadperl-MDV-Distribconf-0c87377b1650edc8b726b375edda0f7b00d96ee6.tar
perl-MDV-Distribconf-0c87377b1650edc8b726b375edda0f7b00d96ee6.tar.gz
perl-MDV-Distribconf-0c87377b1650edc8b726b375edda0f7b00d96ee6.tar.bz2
perl-MDV-Distribconf-0c87377b1650edc8b726b375edda0f7b00d96ee6.tar.xz
perl-MDV-Distribconf-0c87377b1650edc8b726b375edda0f7b00d96ee6.zip
- take mediainfodir into account
Diffstat (limited to 'lib/MDV/Distribconf.pm')
-rw-r--r--lib/MDV/Distribconf.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MDV/Distribconf.pm b/lib/MDV/Distribconf.pm
index 74de631..ea77392 100644
--- a/lib/MDV/Distribconf.pm
+++ b/lib/MDV/Distribconf.pm
@@ -176,6 +176,7 @@ sub new {
root => $path,
infodir => '',
mediadir => '',
+ mediainfodir => '',
cfg => new Config::IniFiles(-default => 'media_info', -allowcontinue => 1),
};
@@ -267,7 +268,7 @@ sub settree {
my ($distrib, $spec) = @_;
if (ref($spec) eq 'HASH') {
- foreach (qw(infodir mediadir)) {
+ foreach (qw(infodir mediadir mediainfodir)) {
$distrib->{$_} = $spec->{$_} || '';
}
} elsif ($spec && $spec =~ /mandrake/i) {