From d5c7286f0f7d5cd85442be28efa46822604d3150 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 16 Sep 2005 18:35:17 +0000 Subject: (complete_usb_storage_info) fix getting data when multiple USB disks of the same vendor are plugged right thing would be to compare {host} but usb_probde() cannot return SCSI host, thus descriptions might be switched if the manufacturer altered them on latest discs rationale: --- perl-install/detect_devices.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/detect_devices.pm') diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 5d00955d1..a2f07aa14 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -140,7 +140,8 @@ sub complete_usb_storage_info { my @usb = grep { exists $_->{usb_vendor} } @l; foreach my $usb (usb_probe()) { - if (my $e = find { $_->{usb_vendor} == $usb->{vendor} && $_->{usb_id} == $usb->{id} } @usb) { + if (my $e = find { !$_->{found} && $_->{usb_vendor} == $usb->{vendor} && $_->{usb_id} == $usb->{id} } @usb) { + $e->{found} = 1; $e->{"usb_$_"} = $usb->{$_} foreach keys %$usb; } } -- cgit v1.2.1