diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-09-16 19:27:26 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-09-16 19:27:26 +0000 |
commit | 19ec952683258785a4eb44cf24f4951d2e2d1e5e (patch) | |
tree | f48b96894ef62d0569208c9a4fafa9bdf301acf8 | |
parent | 7ff5a24ad1b4f7e2ac2e9df17e3a977ace74aa1b (diff) | |
download | drakx-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
-rw-r--r-- | perl-install/detect_devices.pm | 3 |
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 { |