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
commitb154c5277f8980c53a6961ba55f7c2e59ec63aaf (patch)
treee287de5aa223b41e6d50ede9e2a28e40c7de8f84 /perl-install/fs
parentc1491d4e98b60a71680ffe22bb8a71c6be683e74 (diff)
downloaddrakx-backup-do-not-use-b154c5277f8980c53a6961ba55f7c2e59ec63aaf.tar
drakx-backup-do-not-use-b154c5277f8980c53a6961ba55f7c2e59ec63aaf.tar.gz
drakx-backup-do-not-use-b154c5277f8980c53a6961ba55f7c2e59ec63aaf.tar.bz2
drakx-backup-do-not-use-b154c5277f8980c53a6961ba55f7c2e59ec63aaf.tar.xz
drakx-backup-do-not-use-b154c5277f8980c53a6961ba55f7c2e59ec63aaf.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};