summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-09-16 19:27:26 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-09-16 19:27:26 +0000
commit19ec952683258785a4eb44cf24f4951d2e2d1e5e (patch)
treef48b96894ef62d0569208c9a4fafa9bdf301acf8 /perl-install/detect_devices.pm
parent7ff5a24ad1b4f7e2ac2e9df17e3a977ace74aa1b (diff)
downloaddrakx-19ec952683258785a4eb44cf24f4951d2e2d1e5e.tar
drakx-19ec952683258785a4eb44cf24f4951d2e2d1e5e.tar.gz
drakx-19ec952683258785a4eb44cf24f4951d2e2d1e5e.tar.bz2
drakx-19ec952683258785a4eb44cf24f4951d2e2d1e5e.tar.xz
drakx-19ec952683258785a4eb44cf24f4951d2e2d1e5e.zip
(complete_usb_storage_info) using a local value is just saner
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 464b82e90..da30a9533 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -141,11 +141,10 @@ sub complete_usb_storage_info {
foreach my $usb (usb_probe()) {
if (my $e = find { !$_->{found} && $_->{usb_vendor} == $usb->{vendor} && $_->{usb_id} == $usb->{id} } @usb) {
- $e->{found} = 1;
+ local $e->{found} = 1;
$e->{"usb_$_"} = $usb->{$_} foreach keys %$usb;
}
}
- delete $_->{found} foreach @usb;
}
sub get_devfs_devices {