summaryrefslogtreecommitdiffstats
path: root/perl-install/fs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-04-20 18:22:16 +0000
committerThierry Vignaud <tv@mageia.org>2012-04-20 18:22:16 +0000
commit5116d0330c6a1bf0546fecd468ff13029f78aaf5 (patch)
treee287de5aa223b41e6d50ede9e2a28e40c7de8f84 /perl-install/fs
parent529f69b1360246c116dc62e729bc768e28d1cfaf (diff)
downloaddrakx-5116d0330c6a1bf0546fecd468ff13029f78aaf5.tar
drakx-5116d0330c6a1bf0546fecd468ff13029f78aaf5.tar.gz
drakx-5116d0330c6a1bf0546fecd468ff13029f78aaf5.tar.bz2
drakx-5116d0330c6a1bf0546fecd468ff13029f78aaf5.tar.xz
drakx-5116d0330c6a1bf0546fecd468ff13029f78aaf5.zip
(create_display_box) fix crashing on calling a method on a non blessed reference
Diffstat (limited to 'perl-install/fs')
-rw-r--r--perl-install/fs/partitioning_wizard.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm
index ee7253c65..7712301c3 100644
--- a/perl-install/fs/partitioning_wizard.pm
+++ b/perl-install/fs/partitioning_wizard.pm
@@ -287,7 +287,8 @@ sub warn_reboot_needed {
sub create_display_box {
my ($kind, $resize, $fill_empty, $button) = @_;
- my @parts = fs::get::hds_fstab_and_holes($kind->{val});
+ # perl_checker: require UNIVERSAL
+ my @parts = fs::get::hds_fstab_and_holes($kind->{val}) if UNIVERSAL::can($kind->{val}, 'first_usable_sector,');
my $totalsectors = $kind->{val}{totalsectors};