diff options
-rw-r--r-- | urpm.pm | 7 | ||||
-rw-r--r-- | urpmi.spec | 7 |
2 files changed, 11 insertions, 3 deletions
@@ -1902,9 +1902,14 @@ sub download_source_packages { #- examine if given medium is already inside a removable device. my $check_notfound = sub { my ($id, $dir) = @_; + $dir and $urpm->try_mounting($dir); if (!$dir || -e $dir) { foreach (values %{$list->[$id]}) { /^(removable_?[^_:]*|file):\/(.*\/([^\/]*))/ or next; + unless ($dir) { + $dir = $2; + $urpm->try_mounting($dir); + } -r $2 or return 1; } } else { @@ -1922,13 +1927,11 @@ sub download_source_packages { #- the directory given does not exist or may be accessible #- by mounting some other. try to figure out these directory and #- mount everything necessary. - $urpm->try_mounting($dir); while ($check_notfound->($id, $dir)) { $ask_for_medium or $urpm->{fatal}(4, _("medium \"%s\" is not selected", $medium->{name})); $urpm->try_umounting($dir); system("eject", $device); $ask_for_medium->($medium->{name}, $medium->{removable}) or $urpm->{fatal}(4, _("medium \"%s\" is not selected", $medium->{name})); - $urpm->try_mounting($dir); } if (-e $dir) { my @removable_sources; @@ -2,7 +2,7 @@ Name: urpmi Version: 3.3 -Release: 12mdk +Release: 13mdk License: GPL Source0: %{name}.tar.bz2 Source1: %{name}.logrotate @@ -144,6 +144,11 @@ fi %changelog +* Thu Feb 21 2002 François Pons <fpons@mandrakesoft.com> 3.3-13mdk +- removed staling debug log. +- try to mount a removable device before examining if an available + device is present. + * Wed Feb 20 2002 François Pons <fpons@mandrakesoft.com> 3.3-12mdk - fixed installing dependancies of given src.rpm filename. - fixed to keep removable device already mounted before asking |