From ef4d052aecde0c2d76f962c597380576fdec4a8c Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Tue, 24 Apr 2012 21:58:30 +0000 Subject: reuse code from hd_gtk, fixes display of "Use free space" solution --- perl-install/fs/partitioning_wizard.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'perl-install/fs') diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm index 7712301c3..58acbf54d 100644 --- a/perl-install/fs/partitioning_wizard.pm +++ b/perl-install/fs/partitioning_wizard.pm @@ -287,10 +287,9 @@ sub warn_reboot_needed { sub create_display_box { my ($kind, $resize, $fill_empty, $button) = @_; - # 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}; + my @parts = diskdrake::hd_gtk::kind2parts($kind); + my $totalsectors = diskdrake::hd_gtk::kind2sectors($kind, @parts); my $width = 540; my $minwidth = 40; -- cgit v1.2.1