[Pkg-mozext-commits] [adblock-plus] 94/464: Ignore empty entries when testing for equal/different keys
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit 46237d0c8ac4533fe284d330ea7a8a591df468a1
Author: Wladimir Palant <trev at adblockplus.org>
Date: Tue Oct 26 08:59:02 2010 +0200
Ignore empty entries when testing for equal/different keys
---
LocaleTester.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/LocaleTester.pm b/LocaleTester.pm
index a69d617..515bdc3 100644
--- a/LocaleTester.pm
+++ b/LocaleTester.pm
@@ -53,7 +53,7 @@ sub testLocales
foreach my $key (@$entry)
{
my ($dir, $file, $name) = split(/:/, $key);
- next unless exists($currentLocale->{"$dir:$file"}) && exists($currentLocale->{"$dir:$file"}{$name});
+ next unless exists($currentLocale->{"$dir:$file"}) && exists($currentLocale->{"$dir:$file"}{$name}) && $currentLocale->{"$dir:$file"}{$name};
my $value = lc($currentLocale->{"$dir:$file"}{$name});
print "$locale: values for '$values{$value}' and '$key' are identical, must differ\n" if exists $values{$value};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list