[Reproducible-commits] [dpkg] 04/40: scripts: Add missing strict and warnings pragmas for submodules

Jérémy Bobbio lunar at moszumanska.debian.org
Sat May 30 09:52:46 UTC 2015


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

lunar pushed a commit to branch pu/reproducible_builds
in repository dpkg.

commit 8cb07a12ca16b099f368f78cd46ecec338e95367
Author: Guillem Jover <guillem at debian.org>
Date:   Wed May 20 14:45:34 2015 +0200

    scripts: Add missing strict and warnings pragmas for submodules
---
 debian/changelog                 | 2 ++
 scripts/Dpkg/Control/HashCore.pm | 3 +++
 scripts/Dpkg/Shlibs/Objdump.pm   | 3 +++
 3 files changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5c3ac4e..ed2ba25 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ dpkg (1.18.1) UNRELEASED; urgency=low
     This fixes build failures on armel, armhf, ppc64el and s390x.
   * Do not allow pathnames with embedded newlines in dpkg-deb and dpkg.
     Closes: #720761
+  * Perl modules:
+    - Add missing strict and warnings pragmas for submodules.
 
   [ Updated programs translations ]
   * German (Sven Joachim).
diff --git a/scripts/Dpkg/Control/HashCore.pm b/scripts/Dpkg/Control/HashCore.pm
index 9aa9336..1ff87ea 100644
--- a/scripts/Dpkg/Control/HashCore.pm
+++ b/scripts/Dpkg/Control/HashCore.pm
@@ -441,6 +441,9 @@ package Dpkg::Control::HashCore::Tie;
 # same order. But the order information is stored in a parent object of
 # type Dpkg::Control.
 
+use strict;
+use warnings;
+
 use Dpkg::Checksums;
 use Dpkg::Control::FieldsCore;
 
diff --git a/scripts/Dpkg/Shlibs/Objdump.pm b/scripts/Dpkg/Shlibs/Objdump.pm
index 4be66a7..0537a75 100644
--- a/scripts/Dpkg/Shlibs/Objdump.pm
+++ b/scripts/Dpkg/Shlibs/Objdump.pm
@@ -133,6 +133,9 @@ sub is_elf {
 
 package Dpkg::Shlibs::Objdump::Object;
 
+use strict;
+use warnings;
+
 use Dpkg::Gettext;
 use Dpkg::ErrorHandling;
 

-- 
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