[linux] 01/02: linux-image: Remove various unused variables in maintainer scripts

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sun May 29 21:15:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository linux.

commit e55913c12bb7c0b36200777e2223dc53b92bc2b2
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Sun May 29 19:46:39 2016 +0100

    linux-image: Remove various unused variables in maintainer scripts
---
 debian/templates/image.postinst.in | 2 --
 debian/templates/image.postrm.in   | 1 -
 debian/templates/image.preinst.in  | 1 -
 debian/templates/image.prerm.in    | 2 --
 4 files changed, 6 deletions(-)

diff --git a/debian/templates/image.postinst.in b/debian/templates/image.postinst.in
index 00b488e..01da283 100755
--- a/debian/templates/image.postinst.in
+++ b/debian/templates/image.postinst.in
@@ -16,7 +16,6 @@ $|=1;
 
 # Predefined values:
 my $version           = "@abiname@@localversion@";
-my $arch              = "@arch@";
 my $link_in_boot      = "";
 my $no_symlink        = "";
 my $do_symlink        = "Yes";  # target machine defined
@@ -25,7 +24,6 @@ my $mkimage           = "";     # command to generate the initrd image
 my $use_hard_links    = ''; # hardlinks do not work across fs boundaries
 my $postinst_hook     = '';          #Normally we do not
 my $minimal_swap      = '';          # Do not swap symlinks
-my $package_name      = "linux-image-$version";
 
 #known variables
 my $image_dest      = "/";
diff --git a/debian/templates/image.postrm.in b/debian/templates/image.postrm.in
index 45fbf8e..23ee343 100755
--- a/debian/templates/image.postrm.in
+++ b/debian/templates/image.postrm.in
@@ -24,7 +24,6 @@ my $version           = "@abiname@@localversion@";
 my $link_in_boot      = "";
 my $kimage            = "@image-stem@";
 my $postrm_hook       = '';       #Normally we do not
-my $package_name    = "linux-image-$version";
 
 #known variables
 my $image_dest      = "/";
diff --git a/debian/templates/image.preinst.in b/debian/templates/image.preinst.in
index 81bc691..aa52aa0 100755
--- a/debian/templates/image.preinst.in
+++ b/debian/templates/image.preinst.in
@@ -10,7 +10,6 @@ $|=1;
 my $version         = "@abiname@@localversion@";
 my $kimage          = "@image-stem@";
 my $preinst_hook    = '';       #Normally we do not
-my $package_name    = "linux-image-$version";
 
 #known variables
 my $realimageloc    = "/boot/";
diff --git a/debian/templates/image.prerm.in b/debian/templates/image.prerm.in
index df10e11..aa59764 100755
--- a/debian/templates/image.prerm.in
+++ b/debian/templates/image.prerm.in
@@ -20,12 +20,10 @@ my $realimageloc    = "/boot/";
 my $CONF_LOC        = '/etc/kernel-img.conf';
 
 # Variables used
-my $image='';
 my $ret=0;
 my $seen='';
 my $answer='';
 my $running = '';
-my $WouldInvalidate = 0;
 
 # Ignore all invocations uxcept when called on to remove
 exit 0 unless ($ARGV[0] && $ARGV[0] =~ /remove/) ;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list