diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-08-02 08:01:14 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-08-02 08:01:14 +0000 |
commit | 137cba98aa58448cc48aac6ab5d7179d048cbcf0 (patch) | |
tree | 8d6bf773742bad9c63d5d7790077f56e2b92e2b2 /perl-install/diskdrake/interactive.pm | |
parent | aeb208e3f9deeb5f8cb8c5a112510dcdf05900fc (diff) | |
download | drakx-backup-do-not-use-137cba98aa58448cc48aac6ab5d7179d048cbcf0.tar drakx-backup-do-not-use-137cba98aa58448cc48aac6ab5d7179d048cbcf0.tar.gz drakx-backup-do-not-use-137cba98aa58448cc48aac6ab5d7179d048cbcf0.tar.bz2 drakx-backup-do-not-use-137cba98aa58448cc48aac6ab5d7179d048cbcf0.tar.xz drakx-backup-do-not-use-137cba98aa58448cc48aac6ab5d7179d048cbcf0.zip |
- move package_needed_for_partition_type() from fsedit to fs::format
- create check_package_is_installed() in fs::format and use it
Diffstat (limited to 'perl-install/diskdrake/interactive.pm')
-rw-r--r-- | perl-install/diskdrake/interactive.pm | 8 |
1 files changed, 1 insertions, 7 deletions
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; } |