summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-14 23:40:08 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-14 23:40:08 +0000
commita4e14fec987246dde7e9f757a9ae9e1834080d33 (patch)
tree5b86b4cf5005887e22276a5693b0f548a877e3e9 /perl-install
parent78e8097c578fb334c7440a5459fdb7aecc827feb (diff)
downloaddrakx-backup-do-not-use-a4e14fec987246dde7e9f757a9ae9e1834080d33.tar
drakx-backup-do-not-use-a4e14fec987246dde7e9f757a9ae9e1834080d33.tar.gz
drakx-backup-do-not-use-a4e14fec987246dde7e9f757a9ae9e1834080d33.tar.bz2
drakx-backup-do-not-use-a4e14fec987246dde7e9f757a9ae9e1834080d33.tar.xz
drakx-backup-do-not-use-a4e14fec987246dde7e9f757a9ae9e1834080d33.zip
make perl_checker happy
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ftp.pm2
-rw-r--r--perl-install/partition_table.pm2
-rw-r--r--perl-install/partition_table/gpt.pm2
-rw-r--r--perl-install/partition_table/mac.pm2
-rw-r--r--perl-install/partition_table/raw.pm2
-rw-r--r--perl-install/pkgs.pm2
6 files changed, 6 insertions, 6 deletions
diff --git a/perl-install/ftp.pm b/perl-install/ftp.pm
index 3123edc34..5bf822115 100644
--- a/perl-install/ftp.pm
+++ b/perl-install/ftp.pm
@@ -41,7 +41,7 @@ sub new {
$ftp->binary;
$ftp->cwd($prefix);
- my @l = ($ftp, \ (my $retr = undef));
+ my @l = ($ftp, \ (my $retr));
$hosts{"$host$prefix"} = \@l;
@l;
} };
diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm
index 187b65db2..37bb16e73 100644
--- a/perl-install/partition_table.pm
+++ b/perl-install/partition_table.pm
@@ -464,7 +464,7 @@ sub read_one($$) {
foreach ('empty', @parttype, 'lvm_PV', 'unknown') {
/unknown/ and die "unknown partition table format on disk " . $hd->{file};
eval {
- require("partition_table/$_.pm");
+ require "partition_table/$_.pm";
bless $hd, "partition_table::$_";
($pt, $info) = $hd->read($sector);
log::l("found a $_ partition table on $hd->{file} at sector $sector");
diff --git a/perl-install/partition_table/gpt.pm b/perl-install/partition_table/gpt.pm
index 01de8f8a7..425a34e39 100644
--- a/perl-install/partition_table/gpt.pm
+++ b/perl-install/partition_table/gpt.pm
@@ -81,7 +81,7 @@ sub crc32 {
my $crc = 0xFFFFFFFF;
foreach (unpack "C*", $buffer) {
my $subcrc = ($crc ^ $_) & 0xFF;
- for (my $j = 8; $j > 0; $j--){
+ for (my $j = 8; $j > 0; $j--) {
my $b = $subcrc & 1;
$subcrc = ($subcrc >> 1) & 0x7FFFFFFF;
$subcrc = $subcrc ^ 0xEDB88320 if $b;
diff --git a/perl-install/partition_table/mac.pm b/perl-install/partition_table/mac.pm
index cf5ca8a37..d455584cf 100644
--- a/perl-install/partition_table/mac.pm
+++ b/perl-install/partition_table/mac.pm
@@ -128,7 +128,7 @@ sub read($$) {
c::lseek_sector(fileno(F), $sector, 512) or die "reading of partition in sector $sector failed";
my @pt;
- for (my $i = 0;$i < $partmapsize;$i++) {
+ for (my $i = 0; $i < $partmapsize; $i++) {
my $part;
sysread F, $part, psizeof($p_format) or die "error while reading partition info in sector $sector";
diff --git a/perl-install/partition_table/raw.pm b/perl-install/partition_table/raw.pm
index d9a672bce..0456c8c26 100644
--- a/perl-install/partition_table/raw.pm
+++ b/perl-install/partition_table/raw.pm
@@ -146,7 +146,7 @@ sub zero_MBR {
my $type = arch() =~ /ia64/ ? 'gpt' : arch() eq "alpha" ? "bsd" : arch() =~ /^sparc/ ? "sun" : arch() eq "ppc" ? "mac" : "dos";
#- override standard mac type on PPC for IBM machines to dos
$type = "dos" if arch() =~ /ppc/ && detect_devices::get_mac_model() =~ /^IBM/;
- require("partition_table/$type.pm");
+ require "partition_table/$type.pm";
bless $hd, "partition_table::$type";
$hd->{primary} = $hd->clear_raw();
delete $hd->{extended};
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 6f48312f1..a5e9b119b 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -474,7 +474,7 @@ sub read_rpmsrate {
(?:\s+|$)
)(.*)/x) { #@")) {
($t, $flag, $data) = ($1,$2,$3);
- while ($flag =~ s,^\s*(("[^"]*"|[^"\s]*)*)\s+,$1,) { }
+ while ($flag =~ s,^\s*(("[^"]*"|[^"\s]*)*)\s+,$1,) {}
my $ok = 0;
$flag = join('||', grep {
if (my ($inv, $p) = /^(!)?HW"(.*)"/) {