summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-29 11:13:21 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-29 11:13:21 +0000
commitcef63ab20496cff6686bf373c4875e26a906860f (patch)
tree6b2a69dc15b52a4237fb03f5bb923599a11e7b71
parentbaf068fed48770a38dc621da01369848ae042dc8 (diff)
downloadurpmi-cef63ab20496cff6686bf373c4875e26a906860f.tar
urpmi-cef63ab20496cff6686bf373c4875e26a906860f.tar.gz
urpmi-cef63ab20496cff6686bf373c4875e26a906860f.tar.bz2
urpmi-cef63ab20496cff6686bf373c4875e26a906860f.tar.xz
urpmi-cef63ab20496cff6686bf373c4875e26a906860f.zip
do not pass the device around (we don't want to force a device anymore)
-rw-r--r--urpm/removable.pm2
-rwxr-xr-xurpmi2
2 files changed, 2 insertions, 2 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index 8addf002..c7d8e74d 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -188,7 +188,7 @@ sub _mount_cdrom {
try_umounting($urpm, $dir);
system("/usr/bin/eject '$medium->{removable}' 2>/dev/null");
- $ask_for_medium->(remove_internal_name($medium->{name}), $medium->{removable})
+ $ask_for_medium->(remove_internal_name($medium->{name}))
or $urpm->{fatal}(4, N("medium \"%s\" is not available", $medium->{name}));
}
}
diff --git a/urpmi b/urpmi
index c77d1cc4..547af95e 100755
--- a/urpmi
+++ b/urpmi
@@ -619,7 +619,7 @@ my $exit_code = urpm::main_loop::run($urpm, $state,
int(@names || @src_names || @files || @src_files),
\@ask_unselect, \%requested, {
(!$urpm->{options}{auto} || $allow_medium_change ? (copy_removable => sub {
- my $msg = N("Please insert the medium named \"%s\" on device [%s]", $_[0], $_[1]);
+ my $msg = N("Please insert the medium named \"%s\"", $_[0]);
my $msg2 = N("Press Enter when ready...");
if ($ENV{DISPLAY} && $::gui) {
#- probably run from a drak tool