[kernel] r16224 - dists/trunk/linux-2.6/debian/templates/temp.image.plain
Ben Hutchings
benh at alioth.debian.org
Mon Aug 30 00:33:57 UTC 2010
Author: benh
Date: Mon Aug 30 00:33:54 2010
New Revision: 16224
Log:
use strict; use warnings;
Declare implicitly-global variables with 'my'.
Fix variable name discrepancies.
Remove unused variables.
Modified:
dists/trunk/linux-2.6/debian/templates/temp.image.plain/postinst
dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm
dists/trunk/linux-2.6/debian/templates/temp.image.plain/preinst
dists/trunk/linux-2.6/debian/templates/temp.image.plain/prerm
Modified: dists/trunk/linux-2.6/debian/templates/temp.image.plain/postinst
==============================================================================
--- dists/trunk/linux-2.6/debian/templates/temp.image.plain/postinst Sun Aug 29 23:05:08 2010 (r16223)
+++ dists/trunk/linux-2.6/debian/templates/temp.image.plain/postinst Mon Aug 30 00:33:54 2010 (r16224)
@@ -1,6 +1,7 @@
#! /usr/bin/perl
#
-#use strict; #for debugging
+use strict;
+use warnings;
use Cwd 'abs_path';
use Debconf::Client::ConfModule qw(:all);
use POSIX ();
@@ -563,6 +564,7 @@
if ($ret) {
my $seen;
my $answer;
+ my $question;
$question = "${package_name}/postinst/depmod-error-initrd-$version";
($ret,$seen) = fset ("$question", 'seen', 'false');
@@ -721,7 +723,7 @@
die "Failed to find suitable initramfs generation tool in $ramdisk\n"
if $#ramdisklist < 0;
my $success = 0;
-for $ramdisk_cmd (@ramdisklist) {
+for my $ramdisk_cmd (@ramdisklist) {
print STDERR "Running $ramdisk_cmd.\n";
print STDERR "Other valid candidates: @ramdisklist\n" if $#ramdisklist > 0;
@@ -810,7 +812,7 @@
die "Failed to process /etc/kernel/postinst.d/$version";
}
-if ($explicit_do_bootloader) {
+if ($explicit_do_loader) {
my ($question, $ret, $seen);
$question = "${package_name}/postinst/ignoring-do-bootloader-$version";
($ret,$seen) = input('high', "$question");
Modified: dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm
==============================================================================
--- dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm Sun Aug 29 23:05:08 2010 (r16223)
+++ dists/trunk/linux-2.6/debian/templates/temp.image.plain/postrm Mon Aug 30 00:33:54 2010 (r16224)
@@ -1,6 +1,7 @@
#! /usr/bin/perl
#
-#use strict; #for debugging
+use strict;
+use warnings;
use Cwd 'abs_path';
# Debconf may not be around here.
Modified: dists/trunk/linux-2.6/debian/templates/temp.image.plain/preinst
==============================================================================
--- dists/trunk/linux-2.6/debian/templates/temp.image.plain/preinst Sun Aug 29 23:05:08 2010 (r16223)
+++ dists/trunk/linux-2.6/debian/templates/temp.image.plain/preinst Mon Aug 30 00:33:54 2010 (r16224)
@@ -1,6 +1,7 @@
#! /usr/bin/perl
#
-#use strict; #for debugging
+use strict;
+use warnings;
use Debconf::Client::ConfModule qw(:all);
version('2.0');
Modified: dists/trunk/linux-2.6/debian/templates/temp.image.plain/prerm
==============================================================================
--- dists/trunk/linux-2.6/debian/templates/temp.image.plain/prerm Sun Aug 29 23:05:08 2010 (r16223)
+++ dists/trunk/linux-2.6/debian/templates/temp.image.plain/prerm Mon Aug 30 00:33:54 2010 (r16224)
@@ -1,6 +1,7 @@
#! /usr/bin/perl
#
-#use strict;
+use strict;
+use warnings;
use Debconf::Client::ConfModule qw(:all);
version('2.0');
my $capb=capb("backup");
@@ -10,7 +11,7 @@
my $version = "=V";
my $link_in_boot = "";
my $no_symlink = "";
-my $do_symlinks = "Yes"; # target machine defined
+my $do_symlink = "Yes"; # target machine defined
my $do_boot_enable = "Yes"; # target machine defined
my $kimage = "=K";
my $use_hard_links = ''; # hardlinks do not wirk across fs boundaries
@@ -56,7 +57,6 @@
$link_in_boot = "" if /link_in_boot\s*=\s*(no|false|0)\s*$/i;
$do_boot_enable = '' if /do_boot_enable\s*=\s*(no|false|0)\s*$/i;
$use_hard_links = '' if /use_hard_links\s*=\s*(no|false|0)\s*$/i;
- $warn_reboot = '' if /warn_reboot\s*=\s*(no|false|0)\s*$/i;
$minimal_swap = '' if /minimal_swap\s*=\s*(no|false|0)\s*$/i;
$ignore_depmod_err = '' if /ignore_depmod_err\s*=\s*(no|false|0)\s*$/i;
$relink_build_link = '' if /relink_build_link\s*=\s*(no|false|0)\s*$/i;
@@ -68,7 +68,6 @@
$link_in_boot = "Yes" if /link_in_boot\s*=\s*(yes|true|1)\s*$/i;
$do_boot_enable = "Yes" if /do_boot_enable\s*=\s*(yes|true|1)\s*$/i;
$use_hard_links = "Yes" if /use_hard_links\s*=\s*(yes|true|1)\s*$/i;
- $warn_reboot = 'Yes' if /warn_reboot\s*=\s*(yes|true|1)\s*$/i;
$minimal_swap = 'Yes' if /minimal_swap\s*=\s*(yes|true|1)\s*$/i;
$ignore_depmod_err = 'Yes' if /ignore_depmod_err\s*=\s*(yes|true|1)\s*$/i;
$relink_build_link = 'Yes' if /relink_build_link\s*=\s*(yes|true|1)\s*$/i;
More information about the Kernel-svn-changes
mailing list