summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 23:02:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 23:02:38 +0000
commitd549e02d3ae90023febe7f63b4719f670167c358 (patch)
treebd50581026721249321d62267abebab71faffac4
parent3cd59d9a205add7dd714cde4c9cc07743f993813 (diff)
downloadurpmi-d549e02d3ae90023febe7f63b4719f670167c358.tar
urpmi-d549e02d3ae90023febe7f63b4719f670167c358.tar.gz
urpmi-d549e02d3ae90023febe7f63b4719f670167c358.tar.bz2
urpmi-d549e02d3ae90023febe7f63b4719f670167c358.tar.xz
urpmi-d549e02d3ae90023febe7f63b4719f670167c358.zip
modify for the future
-rw-r--r--urpm/removable.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index d8d277cd..13d3fc70 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -148,6 +148,8 @@ sub _mount_it {
or $urpm->{fatal}(4, N("medium \"%s\" is not available", $medium->{name}));
}
}
+
+ $dir;
}
#- side-effects: none
@@ -183,9 +185,7 @@ sub _do_the_copy {
sub _examine_removable_medium_ {
my ($urpm, $medium, $medium_list, $sources, $o_ask_for_medium) = @_;
- _mount_it($urpm, $medium, $medium_list, $o_ask_for_medium);
-
- my $dir = file_from_local_url($medium->{url});
+ my $dir = _mount_it($urpm, $medium, $medium_list, $o_ask_for_medium);
while (my ($i, $url) = each %$medium_list) {
my $filepath = _filepath($url) or next;