summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-31 11:59:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-31 11:59:03 +0000
commitaaff6dff3ac0e9b19810fc1bc836f30c19918e5d (patch)
tree24d563bb50162681d48011773d41f501c720d888 /perl-install/any.pm
parent8eb45d87d70be8b1802f5f6c79cf53b3099b0596 (diff)
downloaddrakx-aaff6dff3ac0e9b19810fc1bc836f30c19918e5d.tar
drakx-aaff6dff3ac0e9b19810fc1bc836f30c19918e5d.tar.gz
drakx-aaff6dff3ac0e9b19810fc1bc836f30c19918e5d.tar.bz2
drakx-aaff6dff3ac0e9b19810fc1bc836f30c19918e5d.tar.xz
drakx-aaff6dff3ac0e9b19810fc1bc836f30c19918e5d.zip
make new perl_checker happy
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm8
1 files changed, 2 insertions, 6 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 6f59fc248..e0dfb62d1 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -281,7 +281,7 @@ You can add some more or change the existing ones."),
$prefix = "linux";
} else {
$e = { type => 'other' };
- $prefix = arch() =~ /sparc/ ? "sunos" : arch() =~ /ppc/ ? "macos" : "windows";;
+ $prefix = arch() =~ /sparc/ ? "sunos" : arch() =~ /ppc/ ? "macos" : "windows";
}
$e->{label} = $prefix;
for (my $nb = 0; member($e->{label}, @labels); $nb++) { $e->{label} = "$prefix-$nb" }
@@ -492,11 +492,7 @@ BOOTPROTO="none"
PEERDNS="$toreplace{peerdns}"
END
foreach (1..2) {
- if ($toreplace{"dns$_"}) {
- print IFCFG <<END;
-DNS$_=$toreplace{"dns$_"}
-END
- }
+ print IFCFG qq(DNS$_=$toreplace{"dns$_"}\n) if $toreplace{"dns$_"};
}
close IFCFG;