summaryrefslogtreecommitdiffstats
path: root/urpm/removable.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 22:44:10 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 22:44:10 +0000
commit74b1af81491b3295cf1e2bad9dd20d43eec44011 (patch)
tree6ca9d69653a35455d40d9e11cc81965c0b400132 /urpm/removable.pm
parentde18dd3a9727b9995166abe4dd81a7ca9a65db84 (diff)
downloadurpmi-74b1af81491b3295cf1e2bad9dd20d43eec44011.tar
urpmi-74b1af81491b3295cf1e2bad9dd20d43eec44011.tar.gz
urpmi-74b1af81491b3295cf1e2bad9dd20d43eec44011.tar.bz2
urpmi-74b1af81491b3295cf1e2bad9dd20d43eec44011.tar.xz
urpmi-74b1af81491b3295cf1e2bad9dd20d43eec44011.zip
simplify
Diffstat (limited to 'urpm/removable.pm')
-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} ||= []}, $_;
}