From 137cba98aa58448cc48aac6ab5d7179d048cbcf0 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 2 Aug 2004 08:01:14 +0000 Subject: - move package_needed_for_partition_type() from fsedit to fs::format - create check_package_is_installed() in fs::format and use it --- perl-install/diskdrake/interactive.pm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'perl-install/diskdrake') diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm index def668bb7..97c3d8a11 100644 --- a/perl-install/diskdrake/interactive.pm +++ b/perl-install/diskdrake/interactive.pm @@ -1027,13 +1027,7 @@ sub check_type { return; } if ($::isStandalone) { - if (my $pkg = fsedit::package_needed_for_partition_type($type)) { - if (!-x "/sbin/mkfs.$type->{fs_type}") { - $in->ask_yesorno('', N("The package %s is needed. Install it?", $pkg), 1) or return; - $in->do_pkgs->install($pkg); - } - -x "/sbin/mkfs.$type->{fs_type}" or $in->ask_warn('', "Mandatory package $pkg is missing"), return; - } + fs::format::check_package_is_installed($in->do_pkgs, $type->{fs_type}) or return; } 1; } -- cgit v1.2.1