summaryrefslogtreecommitdiffstats
path: root/perl-install/diskdrake/interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-01-08 16:36:30 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-01-08 16:36:30 +0000
commit4853428679b16e13068729ef2fe091ac74ec2f3e (patch)
treec82715f556703932704df6bb1b393ee159bdd564 /perl-install/diskdrake/interactive.pm
parent86d3990a137bcf3bb061797979da01a507138cab (diff)
downloaddrakx-4853428679b16e13068729ef2fe091ac74ec2f3e.tar
drakx-4853428679b16e13068729ef2fe091ac74ec2f3e.tar.gz
drakx-4853428679b16e13068729ef2fe091ac74ec2f3e.tar.bz2
drakx-4853428679b16e13068729ef2fe091ac74ec2f3e.tar.xz
drakx-4853428679b16e13068729ef2fe091ac74ec2f3e.zip
perl_checker compliance
Diffstat (limited to 'perl-install/diskdrake/interactive.pm')
-rw-r--r--perl-install/diskdrake/interactive.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index 68cfeaee8..67c9cb721 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -1110,7 +1110,9 @@ sub warn_if_renumbered {
my $l = delete $hd->{partitionsRenumbered};
return if is_empty_array_ref($l);
- my @l = map { N("partition %s is now known as %s", @$_) } @$l;
+ my @l = map {
+ my ($old, $new) = @$_;
+ N("partition %s is now known as %s", $old, $new) } @$l;
$in->ask_warn('', join("\n", 'Partitions have been renumbered: ', @l));
}
@@ -1193,7 +1195,7 @@ sub format_hd_info {
$info .= N("Device: ") . "$hd->{device}\n";
$info .= N("Read-only") . "\n" if $hd->{readonly};
$info .= N("Size: %s\n", formatXiB($hd->{totalsectors}, 512)) if $hd->{totalsectors};
- $info .= N("Geometry: %s cylinders, %s heads, %s sectors\n", @{$hd->{geom}}{qw(cylinders heads sectors)}) if $::expert && $hd->{geom};
+ $info .= N("Geometry: %s cylinders, %s heads, %s sectors\n", $hd->{geom}{cylinders}, $hd->{geom}{heads}, $hd->{geom}{sectors}) if $::expert && $hd->{geom};
$info .= N("Info: ") . ($hd->{info} || $hd->{media_type}) . "\n" if $::expert && ($hd->{info} || $hd->{media_type});
$info .= N("LVM-disks %s\n", join ", ", map { $_->{device} } @{$hd->{disks}}) if isLVM($hd) && $hd->{disks};
$info .= N("Partition table type: %s\n", $1) if $::expert && ref($hd) =~ /_([^_]+)$/;