summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/media.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm
index 9548900c2..d821ab8e2 100644
--- a/perl-install/install/media.pm
+++ b/perl-install/install/media.pm
@@ -437,7 +437,9 @@ sub hdlist_on_disk {
my ($m) = @_;
#urpmidir() . "/hdlist.$m->{fakemedium}.cz";
- join('/', $m->{url}, $m->{media_info_dir}, "hdlist.cz");
+ require urpm;
+ # FIXME: download hdlist if needed:
+ return urpm::is_local_medium($m) ? join('/', $m->{url}, $m->{media_info_dir}, "hdlist.cz") : '';
}
sub _allow_copy_rpms_on_disk {