summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/MDV/Distribconf.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/MDV/Distribconf.pm b/lib/MDV/Distribconf.pm
index 4829e89..d8be727 100644
--- a/lib/MDV/Distribconf.pm
+++ b/lib/MDV/Distribconf.pm
@@ -516,7 +516,6 @@ to the media for files having doble location (index for example).
=cut
-
sub getmediapath {
my ($distrib, $media, $var) = @_;
my %files = (
@@ -572,10 +571,11 @@ sub getdpath {
my ($distrib, $media, $var) = @_;
if ($var =~ /^(hdlist|synthesis|pubkey|MD5SUM)$/) {
- if ($distrib->{type} eq 'mandriva') {
- return $distrib->getmediapath($media, $var);
- } else {
+ if ($distrib->getvalue($media, 'cdmode')
+ || $distrib->{type} eq 'mandrake') {
return $distrib->getpath($media, $var);
+ } else {
+ return $distrib->getmediapath($media, $var);
}
} else {
return $distrib->getpath($media, $var);