Просмотр исходного кода

scripts: Add missing strict and warnings pragmas for submodules

Guillem Jover лет назад: 11
Родитель
Сommit
8cb07a12ca
3 измененных файлов с 8 добавлено и 0 удалено
  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.
   * 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).

+ 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
 # type Dpkg::Control.
 
+use strict;
+use warnings;
+
 use Dpkg::Checksums;
 use Dpkg::Control::FieldsCore;
 

+ 3 - 0
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;