[dpkg] 102/192: Dpkg::Source: Use Errno module instead of the slow to import POSIX
Ximin Luo
infinity0 at debian.org
Tue Oct 17 11:04:05 UTC 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch pu/reproducible_builds
in repository dpkg.
commit a4889aac5b4a5eaa66823df86575f30b00d741a4
Author: Guillem Jover <guillem at debian.org>
Date: Fri Jul 14 00:33:14 2017 +0200
Dpkg::Source: Use Errno module instead of the slow to import POSIX
---
debian/changelog | 1 +
scripts/Dpkg/Source/Functions.pm | 2 +-
scripts/Dpkg/Source/Package/V1.pm | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index d6fea6f..034b9fc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,7 @@ dpkg (1.19.0) UNRELEASED; urgency=medium
- Make the Dpkg::Substvars warnings output deterministic.
Thanks to Chris Lamb <lamby at debian.org>. Closes: #870221
- Remove unused POSIX module imports.
+ - Use Errno module instead of the slow to import POSIX.
* Documentation:
- Document currently accepted syntax for changelogs in deb-changelog(5).
Closes: #858579
diff --git a/scripts/Dpkg/Source/Functions.pm b/scripts/Dpkg/Source/Functions.pm
index b44b06f..0a94046 100644
--- a/scripts/Dpkg/Source/Functions.pm
+++ b/scripts/Dpkg/Source/Functions.pm
@@ -27,7 +27,7 @@ our @EXPORT_OK = qw(
);
use Exporter qw(import);
-use POSIX qw(:errno_h);
+use Errno qw(ENOENT);
use Dpkg::ErrorHandling;
use Dpkg::Gettext;
diff --git a/scripts/Dpkg/Source/Package/V1.pm b/scripts/Dpkg/Source/Package/V1.pm
index 03e1edf..10d33b4 100644
--- a/scripts/Dpkg/Source/Package/V1.pm
+++ b/scripts/Dpkg/Source/Package/V1.pm
@@ -21,7 +21,7 @@ use warnings;
our $VERSION = '0.01';
-use POSIX qw(:errno_h);
+use Errno qw(ENOENT);
use Cwd;
use File::Basename;
use File::Temp qw(tempfile);
--
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