diff options
Diffstat (limited to 'perl-install/diskdrake/resize_ntfs.pm')
| -rw-r--r-- | perl-install/diskdrake/resize_ntfs.pm | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/perl-install/diskdrake/resize_ntfs.pm b/perl-install/diskdrake/resize_ntfs.pm index c6364fec6..db591e968 100644 --- a/perl-install/diskdrake/resize_ntfs.pm +++ b/perl-install/diskdrake/resize_ntfs.pm @@ -5,7 +5,7 @@ use strict;  use run_program;  use common; - +# perl_checker: require interactive  sub new {      my ($type, $_device, $dev) = @_; @@ -13,16 +13,16 @@ sub new {  }  sub check_prog { -    my ($in) = @_; -    #- ensure_binary_is_installed checks binary chrooted, whereas we run the binary non-chrooted (pb for Mandriva One) -    $::isInstall || whereis_binary('ntfsresize') || $in->do_pkgs->ensure_binary_is_installed('ntfsprogs', 'ntfsresize'); +    my ($in) = @_; # perl_checker: $in = interactive->new +    #- ensure_binary_is_installed checks binary chrooted, whereas we run the binary non-chrooted (pb for Mageia One) +    $::isInstall || whereis_binary('ntfsresize') || $in->do_pkgs->ensure_binary_is_installed('ntfs-3g', 'ntfsresize');  }  sub min_size {      my ($o) = @_;      my $r;      run_program::run('ntfsresize', '>', \$r, '-f', '-i', $o->{dev}) or die "ntfsresize failed:\n$r\n"; -    $r =~ /minimal size: (\d+) KiB/ && $1 * 2;  +    $r =~ /You might resize at (\d+) bytes or / && $1 / 512;   }  sub resize { | 
