summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-04-23 17:28:20 +0000
committerThierry Vignaud <tv@mageia.org>2012-04-23 17:28:20 +0000
commitf99ab9af40eec139bb33504f0b360f5923da910a (patch)
tree3323d88fdfdaaed6587284654307504c99a0e0bb
parent9042e7966ee4228e6d46d067b4341d73519871e5 (diff)
downloaddrakx-f99ab9af40eec139bb33504f0b360f5923da910a.tar
drakx-f99ab9af40eec139bb33504f0b360f5923da910a.tar.gz
drakx-f99ab9af40eec139bb33504f0b360f5923da910a.tar.bz2
drakx-f99ab9af40eec139bb33504f0b360f5923da910a.tar.xz
drakx-f99ab9af40eec139bb33504f0b360f5923da910a.zip
(hdlist_on_disk) enhance it
-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 {