summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-07-19 05:42:41 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-07-19 05:42:41 +0000
commit054e02539a6c2debf94cf56b47c55e80f483ddc9 (patch)
tree5dba147619e790d96854f4e8aa9cb71fef4d99ab /perl-install
parente0e05d3c0d641f2cfaffa50926df54a86d3d4b49 (diff)
downloaddrakx-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-xperl-install/standalone/harddrake24
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}}) . ")";