From cce82543244847bc44ccdd9d116e2fd04599f14c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 9 Oct 2001 13:55:00 +0000 Subject: fix detecting read-only drives (like memory-sticks) --- perl-install/install_any.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/install_any.pm') diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index ba088f414..00a4e4f34 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -948,7 +948,7 @@ sub getHds { goto getHds; } if (!$::testing) { - @$hds = grep { partition_table_raw::test_for_bad_drives($_) } @$hds; + @$hds = grep { eval { partition_table_raw::test_for_bad_drives($_) }; !$@ } @$hds; } $ok = fsedit::verifyHds($hds, $flags->{readonly}, $ok) -- cgit v1.2.1