[Reproducible-commits] [dpkg] 02/11: Replace non-existent _() with _g() in multiple places of the Perl code
Holger Levsen
holger at layer-acht.org
Tue May 3 08:43:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to annotated tag 1.16.11
in repository dpkg.
commit 32be387851c933c334cb3459556137950724b8e7
Author: Lincoln Myers <lincoln at netapp.com>
Date: Fri May 17 08:42:56 2013 +0200
Replace non-existent _() with _g() in multiple places of the Perl code
[hertzog at debian.org:
- Fix the same mistake in scripts/dpkg-shlibdeps.pl ]
Closes: #708607
Signed-off-by: Raphaël Hertzog <hertzog at debian.org>
---
debian/changelog | 5 +++++
scripts/Dpkg/File.pm | 4 ++--
scripts/dpkg-shlibdeps.pl | 2 +-
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 470a3ee..9126abc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,11 @@ dpkg (1.16.11) UNRELEASED; urgency=low
[ Updated man page translations ]
* Japanese (TAKAHASHI Motonobu). Closes: #704240
+ [ Raphaël Hertzog ]
+ * Fix usage of non-existent _() function in multiple places of the Perl
+ code. Thanks to Lincoln Myers <lincoln at netapp.com> for the patch.
+ Closes: #708607
+
-- Guillem Jover <guillem at debian.org> Sat, 30 Mar 2013 15:48:52 +0100
dpkg (1.16.10) unstable; urgency=low
diff --git a/scripts/Dpkg/File.pm b/scripts/Dpkg/File.pm
index 46717a4..d9ed5e1 100644
--- a/scripts/Dpkg/File.pm
+++ b/scripts/Dpkg/File.pm
@@ -39,12 +39,12 @@ sub file_lock($$) {
if ($@) {
warning(_g("File::FcntlLock not available; using flock which is not NFS-safe"));
flock($fh, LOCK_EX) ||
- syserr(_("failed to get a write lock on %s"), $filename);
+ syserr(_g("failed to get a write lock on %s"), $filename);
} else {
eval q{
my $fs = File::FcntlLock->new(l_type => F_WRLCK);
$fs->lock($fh, F_SETLKW) ||
- syserr(_("failed to get a write lock on %s"), $filename);
+ syserr(_g("failed to get a write lock on %s"), $filename);
}
}
}
diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl
index ad0c06f..e257369 100755
--- a/scripts/dpkg-shlibdeps.pl
+++ b/scripts/dpkg-shlibdeps.pl
@@ -142,7 +142,7 @@ my $fields = $control->get_source();
my $build_depends = defined($fields->{"Build-Depends"}) ?
$fields->{"Build-Depends"} : "";
my $build_deps = deps_parse($build_depends, build_dep => 1, reduce_arch => 1);
-error(_("error occurred while parsing %s"), "Build-Depends") unless defined $build_deps;
+error(_g("error occurred while parsing %s"), "Build-Depends") unless defined $build_deps;
my %dependencies;
my %shlibs;
--
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