summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-10-09 13:55:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-10-09 13:55:00 +0000
commitcce82543244847bc44ccdd9d116e2fd04599f14c (patch)
tree44b11bfefbe3868b02636ff1e79d36bc03ee3846 /perl-install/install_any.pm
parentbe169c8f9492e46ef6c587fb7d0b705039a0610e (diff)
downloaddrakx-cce82543244847bc44ccdd9d116e2fd04599f14c.tar
drakx-cce82543244847bc44ccdd9d116e2fd04599f14c.tar.gz
drakx-cce82543244847bc44ccdd9d116e2fd04599f14c.tar.bz2
drakx-cce82543244847bc44ccdd9d116e2fd04599f14c.tar.xz
drakx-cce82543244847bc44ccdd9d116e2fd04599f14c.zip
fix detecting read-only drives (like memory-sticks)
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm2
1 files changed, 1 insertions, 1 deletions
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)