[debsums] 06/07: Remove superfluous parentheses in foreach loop

Axel Beckert abe at deuxchevaux.org
Tue Mar 3 11:35:24 UTC 2015


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

abe pushed a commit to branch master
in repository debsums.

commit 36c354535dd6587b2330021c256945955f2de687
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Tue Mar 3 11:19:17 2015 +0100

    Remove superfluous parentheses in foreach loop
---
 debian/changelog | 1 +
 debsums          | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index cce4160..7fe031f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -33,6 +33,7 @@ debsums (2.1~dev) UNRELEASED; urgency=medium
     + Simplify parsing of dpkg-{parsechangelog,query} output by using more
       specific options, allowing to drop the calls to grep and cut.
     + Use "use warnings;" instead of "perl -w".
+    + Remove superfluous parentheses in foreach loop.
     + Remove obsolete CVS keywords.
     + Quote HERE document delimiters to ease syntax highlighting and
       please perlcritic.
diff --git a/debsums b/debsums
index 763731c..fb377d2 100755
--- a/debsums
+++ b/debsums
@@ -151,8 +151,8 @@ my $is_path_pattern_opt = sub {
 
 my $dpkg_conf = Dpkg::Conf->new();
 
-foreach ((glob($root . "/etc/dpkg/dpkg.cfg.d/[0-9a-zA-Z_-]*"),
-          ($root . "/etc/dpkg/dpkg.cfg", $root . glob("~/.dpkg.cfg")))) {
+foreach (glob($root . "/etc/dpkg/dpkg.cfg.d/[0-9a-zA-Z_-]*"),
+         ($root . "/etc/dpkg/dpkg.cfg", $root . glob("~/.dpkg.cfg"))) {
     if (-f $_) {
         my $name = "$_";
         $dpkg_conf->load($name);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git



More information about the Pkg-perl-cvs-commits mailing list