summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2006-08-24 22:50:09 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2006-08-24 22:50:09 +0000
commit50e39ef4b0a9ea513a934a572f99905260e0140d (patch)
tree2b8295c4fbfeb5572a24c2a7de2cbdd93906f451 /lib
parenta2acafce4b2c1b26cc9aea46d88c299dfabb3da6 (diff)
downloadperl-MDV-Distribconf-50e39ef4b0a9ea513a934a572f99905260e0140d.tar
perl-MDV-Distribconf-50e39ef4b0a9ea513a934a572f99905260e0140d.tar.gz
perl-MDV-Distribconf-50e39ef4b0a9ea513a934a572f99905260e0140d.tar.bz2
perl-MDV-Distribconf-50e39ef4b0a9ea513a934a572f99905260e0140d.tar.xz
perl-MDV-Distribconf-50e39ef4b0a9ea513a934a572f99905260e0140d.zip
- fix getpath(undef, 'infodir')3.05
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Distribconf.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MDV/Distribconf.pm b/lib/MDV/Distribconf.pm
index 6ec9c87..74de631 100644
--- a/lib/MDV/Distribconf.pm
+++ b/lib/MDV/Distribconf.pm
@@ -2,7 +2,7 @@ package MDV::Distribconf;
# $Id$
-our $VERSION = '3.04';
+our $VERSION = '3.05';
=head1 NAME
@@ -466,7 +466,7 @@ sub getpath {
$distrib->mediaexists($media) or return;
$var ||= ""; # Avoid undef value
my $val = $distrib->getvalue($media, $var);
- $var =~ /^(?:root|VERSION)$/ and return $val;
+ $var =~ /^(?:root|VERSION|(?:media|info)dir)$/ and return $val;
my $thispath = $var eq 'path' ? $distrib->{mediadir} : $distrib->{infodir};
if ($distrib->getvalue(undef, 'mediacfg_version') >= 2) {
return $thispath . '/' . $val;