[dpkg] 156/187: dpkg-distaddfile: Rename variable from $file to $filename

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:40 UTC 2016


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

deki-guest pushed a commit to branch master
in repository dpkg.

commit 39cb4f28e973ac1860b57777e795ce1eafb7875d
Author: Guillem Jover <guillem at debian.org>
Date:   Thu Nov 3 01:05:59 2016 +0100

    dpkg-distaddfile: Rename variable from $file to $filename
---
 scripts/dpkg-distaddfile.pl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/dpkg-distaddfile.pl b/scripts/dpkg-distaddfile.pl
index e9cc6a6..060b3a2 100755
--- a/scripts/dpkg-distaddfile.pl
+++ b/scripts/dpkg-distaddfile.pl
@@ -72,9 +72,9 @@ while (@ARGV && $ARGV[0] =~ m/^-/) {
 }
 usageerr(g_('need exactly a filename, section and priority')) if @ARGV != 3;
 
-my ($file, $section, $priority) = @ARGV;
+my ($filename, $section, $priority) = @ARGV;
 
-($file =~ m/\s/ || $section =~ m/\s/ || $priority =~ m/\s/) &&
+($filename =~ m/\s/ || $section =~ m/\s/ || $priority =~ m/\s/) &&
     error(g_('filename, section and priority may contain no whitespace'));
 
 # Obtain a lock on debian/control to avoid simultaneous updates
@@ -87,7 +87,7 @@ file_lock($lockfh, $lockfile);
 
 my $dist = Dpkg::Dist::Files->new();
 $dist->load($fileslistfile) if -e $fileslistfile;
-$dist->add_file($file, $section, $priority);
+$dist->add_file($filename, $section, $priority);
 $dist->save("$fileslistfile.new");
 
 rename("$fileslistfile.new", $fileslistfile)

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



More information about the Reproducible-commits mailing list