summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/MDV/Distribconf.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/MDV/Distribconf.pm b/lib/MDV/Distribconf.pm
index 48818b0..6f49eeb 100644
--- a/lib/MDV/Distribconf.pm
+++ b/lib/MDV/Distribconf.pm
@@ -422,11 +422,12 @@ sub getpath {
$var ||= ""; # Avoid undef value
my $val = $distrib->getvalue($media, $var);
$var =~ /^(?:root|VERSION)$/ and return $val;
+ my $thispath = $var eq 'path' ? $distrib->{mediadir} : $distrib->{infodir};
return
($distrib->getvalue(undef, 'mediacfg_version') >= 2 ?
- $distrib->{mediadir} :
+ $thispath :
($val =~ m!/! ? '' :
- ($var eq 'path' ? $distrib->{mediadir} : $distrib->{infodir})
+ $thispath
)
) . '/' . $val;
}