diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-04-23 17:28:20 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-04-23 17:28:20 +0000 |
commit | f99ab9af40eec139bb33504f0b360f5923da910a (patch) | |
tree | 3323d88fdfdaaed6587284654307504c99a0e0bb /perl-install/install | |
parent | 9042e7966ee4228e6d46d067b4341d73519871e5 (diff) | |
download | drakx-f99ab9af40eec139bb33504f0b360f5923da910a.tar drakx-f99ab9af40eec139bb33504f0b360f5923da910a.tar.gz drakx-f99ab9af40eec139bb33504f0b360f5923da910a.tar.bz2 drakx-f99ab9af40eec139bb33504f0b360f5923da910a.tar.xz drakx-f99ab9af40eec139bb33504f0b360f5923da910a.zip |
(hdlist_on_disk) enhance it
Diffstat (limited to 'perl-install/install')
-rw-r--r-- | perl-install/install/media.pm | 4 |
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 { |