diff options
author | Francois Pons <fpons@mandriva.com> | 2002-02-21 10:54:25 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-02-21 10:54:25 +0000 |
commit | 4c02fc931782f2d007c2678d2dc857bfd9f59106 (patch) | |
tree | 90265f40fb417914ac2b0565e16896994405fa5e | |
parent | 4205726026c17fd914bd93fbc91508a44e15da21 (diff) | |
download | urpmi-4c02fc931782f2d007c2678d2dc857bfd9f59106.tar urpmi-4c02fc931782f2d007c2678d2dc857bfd9f59106.tar.gz urpmi-4c02fc931782f2d007c2678d2dc857bfd9f59106.tar.bz2 urpmi-4c02fc931782f2d007c2678d2dc857bfd9f59106.tar.xz urpmi-4c02fc931782f2d007c2678d2dc857bfd9f59106.zip |
3.3-13mdk
-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 |