diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-07-19 05:42:41 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-07-19 05:42:41 +0000 |
commit | 054e02539a6c2debf94cf56b47c55e80f483ddc9 (patch) | |
tree | 5dba147619e790d96854f4e8aa9cb71fef4d99ab /perl-install | |
parent | e0e05d3c0d641f2cfaffa50926df54a86d3d4b49 (diff) | |
download | drakx-054e02539a6c2debf94cf56b47c55e80f483ddc9.tar drakx-054e02539a6c2debf94cf56b47c55e80f483ddc9.tar.gz drakx-054e02539a6c2debf94cf56b47c55e80f483ddc9.tar.bz2 drakx-054e02539a6c2debf94cf56b47c55e80f483ddc9.tar.xz drakx-054e02539a6c2debf94cf56b47c55e80f483ddc9.zip |
let's work with "perl -w"
Diffstat (limited to 'perl-install')
-rwxr-xr-x | perl-install/standalone/harddrake2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2 index cd3c11ec8..c762777f7 100755 --- a/perl-install/standalone/harddrake2 +++ b/perl-install/standalone/harddrake2 @@ -410,8 +410,8 @@ foreach (@classes) { my $hd = $_; my $info = find { $_->{device} eq $hd->{device} } @{$all_hds->{hds}}; $hd->{geometry} = join('/', map { $info->{geom}{$_} } qw(cylinders heads sectors)) . " (CHS)"; - $hd->{primary_partitions} = @{$info->{primary}{normal}}; - $hd->{extended_partitions} = @{$info->{extended}}; + $hd->{primary_partitions} = @{$info->{primary}{normal}} if $info->{primary}{normal}; + $hd->{extended_partitions} = @{$info->{extended}} if $info->{extended}; $hd->{primary_partitions} .= " (" . join(', ', map { $_->{device} }@{$info->{primary}{normal}}) . ")" if $hd->{primary_partitions}; if ($hd->{extended_partitions}) { $hd->{extended_partitions} .= " (" . join(', ', map { $_->{normal}{device} }@{$info->{extended}}) . ")"; |