summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 21:19:01 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 21:19:01 +0000
commit01c62172569ff364db6510499b63fb16c5680fbc (patch)
treeb3261ce38bdaf70635998f6c055ff3359ae5e643 /urpm
parent789271f043122341ea66835c954e71f65f97a582 (diff)
downloadurpmi-01c62172569ff364db6510499b63fb16c5680fbc.tar
urpmi-01c62172569ff364db6510499b63fb16c5680fbc.tar.gz
urpmi-01c62172569ff364db6510499b63fb16c5680fbc.tar.bz2
urpmi-01c62172569ff364db6510499b63fb16c5680fbc.tar.xz
urpmi-01c62172569ff364db6510499b63fb16c5680fbc.zip
simplify
Diffstat (limited to 'urpm')
-rw-r--r--urpm/removable.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index 9e6e24c7..2b5817c8 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -122,7 +122,6 @@ sub _examine_removable_medium {
sub _mount_it {
my ($urpm, $medium, $medium_list, $o_ask_for_medium) = @_;
- my $device = $medium->{removable};
my $dir = file_from_local_url($medium->{url});
#- the directory given does not exist and may be accessible
@@ -136,7 +135,7 @@ sub _mount_it {
or $urpm->{fatal}(4, N("medium \"%s\" is not available", $medium->{name}));
try_umounting($urpm, $dir);
- system("/usr/bin/eject '$device' 2>/dev/null");
+ system("/usr/bin/eject '$medium->{removable}' 2>/dev/null");
$o_ask_for_medium->(remove_internal_name($medium->{name}), $medium->{removable})
or $urpm->{fatal}(4, N("medium \"%s\" is not available", $medium->{name}));