diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-20 16:11:06 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-20 16:11:06 +0000 |
commit | a7031093f51d3427dba6b85022084185bd39a6c8 (patch) | |
tree | 223088ceadb694d8f9e1ef5a2a0ee26f32654b46 /urpm.pm | |
parent | b04c8f5be139cbb0bda3f1d640edc800c10ef09b (diff) | |
download | urpmi-a7031093f51d3427dba6b85022084185bd39a6c8.tar urpmi-a7031093f51d3427dba6b85022084185bd39a6c8.tar.gz urpmi-a7031093f51d3427dba6b85022084185bd39a6c8.tar.bz2 urpmi-a7031093f51d3427dba6b85022084185bd39a6c8.tar.xz urpmi-a7031093f51d3427dba6b85022084185bd39a6c8.zip |
{with_dir} is more important than {probe_with}
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -1378,7 +1378,7 @@ sub _update_medium__parse_if_unmodified__or_get_files__local { #- by mounting some other directory. Try to figure it out and mount #- everything that might be necessary. $urpm->try_mounting( - !$options->{force_building_hdlist} && ($options->{probe_with} || $medium->{with_hdlist}) + !$options->{force_building_hdlist} && $medium->{with_hdlist} ? $with_hdlist_dir : $dir, #- in case of an iso image, pass its name is_iso($medium->{removable}) && $medium->{removable}, @@ -1565,13 +1565,8 @@ sub _update_medium__parse_if_unmodified__or_get_files__remote { #- it is already defined (and valid). $urpm->{log}(N("retrieving source hdlist (or synthesis) of \"%s\"...", $medium->{name})); $options->{callback} and $options->{callback}('retrieve', $medium->{name}); - if ($options->{probe_with}) { - my @probe_list = ( - $medium->{with_hdlist} - ? $medium->{with_hdlist} - : _probe_with_try_list($medium->{url}, $options->{probe_with}) - ); - foreach my $with_hdlist (@probe_list) { + if ($options->{probe_with} && !$medium->{with_hdlist}) { + foreach my $with_hdlist (_probe_with_try_list($medium->{url}, $options->{probe_with})) { $basename = basename($with_hdlist) or next; $options->{force} and unlink "$urpm->{cachedir}/partial/$basename"; if (sync_webfetch($urpm, $medium, [ reduce_pathname("$medium->{url}/$with_hdlist") ], |