summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Dist/Files.pm
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-12-29 17:03:48 +0100
committerGuillem Jover <guillem@debian.org>2015-01-28 20:50:30 +0100
commit6e56dce4194d7a4de56c0a9111020e19e5963bf2 (patch)
tree1459afbc2f5e993b1069357291f622f3e0513e1f /scripts/Dpkg/Dist/Files.pm
parent08ce938d42f01ebe939f8a527f7b02ec017d3cc7 (diff)
downloaddpkg-6e56dce4194d7a4de56c0a9111020e19e5963bf2.tar.gz
scripts: Rename and deprecate _g function with g_
The old function name was inconsistent with the other gettext family of short aliases which has already caused some code typos, and functions starting with underscore are considered by convention private in Perl.
Diffstat (limited to 'scripts/Dpkg/Dist/Files.pm')
-rw-r--r--scripts/Dpkg/Dist/Files.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Dpkg/Dist/Files.pm b/scripts/Dpkg/Dist/Files.pm
index a76429e68..b9f229be1 100644
--- a/scripts/Dpkg/Dist/Files.pm
+++ b/scripts/Dpkg/Dist/Files.pm
@@ -67,11 +67,11 @@ sub parse {
$file{section} = $2;
$file{priority} = $3;
} else {
- error(_g('badly formed line in files list file, line %d'), $.);
+ error(g_('badly formed line in files list file, line %d'), $.);
}
if (defined $self->{files}->{$file{filename}}) {
- warning(_g('duplicate files list entry for file %s (line %d)'),
+ warning(g_('duplicate files list entry for file %s (line %d)'),
$file{filename}, $.);
} else {
$count++;