diff options
-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 { |