summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/get.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-16 10:14:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-16 10:14:11 +0000
commitbfcc35f8882cb0fbd5c965a43ccd8103e38ed5e6 (patch)
tree29fc62cbe16571e39431bc6b6eca9a6143e699fe /perl-install/fs/get.pm
parent81966041225bbca4aae4acf0cf141645dffedc03 (diff)
downloaddrakx-bfcc35f8882cb0fbd5c965a43ccd8103e38ed5e6.tar
drakx-bfcc35f8882cb0fbd5c965a43ccd8103e38ed5e6.tar.gz
drakx-bfcc35f8882cb0fbd5c965a43ccd8103e38ed5e6.tar.bz2
drakx-bfcc35f8882cb0fbd5c965a43ccd8103e38ed5e6.tar.xz
drakx-bfcc35f8882cb0fbd5c965a43ccd8103e38ed5e6.zip
create isEmpty() and use it instead of simply testing {pt_type}, since {pt_type} can be undef whereas {fs_type} is set
Diffstat (limited to 'perl-install/fs/get.pm')
-rw-r--r--perl-install/fs/get.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/fs/get.pm b/perl-install/fs/get.pm
index 859ddf0ac..6b982c1e9 100644
--- a/perl-install/fs/get.pm
+++ b/perl-install/fs/get.pm
@@ -30,10 +30,10 @@ sub fstab_and_holes {
sub holes {
my ($all_hds) = @_;
- grep { $_->{pt_type} == 0 } fstab_and_holes($all_hds);
+ grep { isEmpty($_) } fstab_and_holes($all_hds);
}
sub hds_holes {
- grep { $_->{pt_type} == 0 } hds_fstab_and_holes(@_);
+ grep { isEmpty($_) } hds_fstab_and_holes(@_);
}
sub free_space {
my ($all_hds) = @_;