Bläddra i källkod

scripts: Add missing strict and warnings pragmas for submodules

Guillem Jover 11 år sedan
förälder
incheckning
8cb07a12ca
3 ändrade filer med 8 tillägg och 0 borttagningar
  1. 2 0
      debian/changelog
  2. 3 0
      scripts/Dpkg/Control/HashCore.pm
  3. 3 0
      scripts/Dpkg/Shlibs/Objdump.pm

+ 2 - 0
debian/changelog

@@ -5,6 +5,8 @@ dpkg (1.18.1) UNRELEASED; urgency=low
     This fixes build failures on armel, armhf, ppc64el and s390x.
     This fixes build failures on armel, armhf, ppc64el and s390x.
   * Do not allow pathnames with embedded newlines in dpkg-deb and dpkg.
   * Do not allow pathnames with embedded newlines in dpkg-deb and dpkg.
     Closes: #720761
     Closes: #720761
+  * Perl modules:
+    - Add missing strict and warnings pragmas for submodules.
 
 
   [ Updated programs translations ]
   [ Updated programs translations ]
   * German (Sven Joachim).
   * German (Sven Joachim).

+ 3 - 0
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
 # same order. But the order information is stored in a parent object of
 # type Dpkg::Control.
 # type Dpkg::Control.
 
 
+use strict;
+use warnings;
+
 use Dpkg::Checksums;
 use Dpkg::Checksums;
 use Dpkg::Control::FieldsCore;
 use Dpkg::Control::FieldsCore;
 
 

+ 3 - 0
scripts/Dpkg/Shlibs/Objdump.pm

@@ -133,6 +133,9 @@ sub is_elf {
 
 
 package Dpkg::Shlibs::Objdump::Object;
 package Dpkg::Shlibs::Objdump::Object;
 
 
+use strict;
+use warnings;
+
 use Dpkg::Gettext;
 use Dpkg::Gettext;
 use Dpkg::ErrorHandling;
 use Dpkg::ErrorHandling;