From f89d1b8daf5f217a83c37520ea3af788297e1c78 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 27 Feb 2008 11:18:09 +0000 Subject: what we really want here is the place where the synthesis is, so in the case of {with_synthesis}, we want to check/mount there --- urpm/media.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/urpm/media.pm b/urpm/media.pm index c8397efb..66f9134f 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1237,15 +1237,15 @@ sub _is_statedir_MD5SUM_uptodate { sub _update_medium__parse_if_unmodified__local { my ($urpm, $medium, $options) = @_; - my $dir = file_from_local_url($medium->{url}); + my $dir = $options->{probe_with} ne 'rpms' && _valid_synthesis_dir($medium) + ? _synthesis_dir($medium) : file_from_local_url($medium->{url}); if (!-d $dir) { #- the directory given does not exist and may be accessible #- by mounting some other directory. Try to figure it out and mount #- everything that might be necessary. urpm::removable::try_mounting($urpm, - $options->{probe_with} ne 'rpms' && _valid_synthesis_dir($medium) - ? _synthesis_dir($medium) : $dir, + $dir, #- in case of an iso image, pass its name urpm::removable::is_iso($medium->{removable}) && $medium->{removable}, ) or $urpm->{error}(N("unable to access medium \"%s\", -- cgit v1.2.1