summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/removable.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index a24019fd..46221021 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -223,9 +223,8 @@ sub _get_removables {
my %removables;
foreach (@$blists) {
- my $medium = $_->{medium};
#- examine non removable device but that may be mounted.
- if (my $device = $medium->{removable}) {
+ if (my $device = $_->{medium}{removable}) {
next if $device =~ m![^a-zA-Z0-9_./-]!; #- bad path
push @{$removables{$device} ||= []}, $_;
}