summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/genlang6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/genlang b/tools/genlang
index c8ccbd16d7..19b637d237 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -237,7 +237,7 @@ sub readenglish {
237 237
238 238
239 if ($binary and file_is_newer("$binpath/english.list", $english)) { 239 if ($binary and file_is_newer("$binpath/english.list", $english)) {
240 open(ENG, "<$binpath/english.list") || 240 open(ENG, "<$binpath/english.list") ||
241 die "Error: can't open $binpath/english.list"; 241 die "Error: can't open $binpath/english.list";
242 while (<ENG>) { 242 while (<ENG>) {
243 my ($user, $id, $value) = split ':', $_; 243 my ($user, $id, $value) = split ':', $_;
@@ -830,8 +830,8 @@ if($verbose) {
830 } 830 }
831} 831}
832 832
833if ($binary and !-r "$binpath/english.list") { 833if ($binary and !file_is_newer("$binpath/english.list", $english)) {
834 open(ENGLIST, ">$binpath/english.list") || 834 open(ENGLIST, ">$binpath/english.list") ||
835 die "Failed creating $binpath/english.list"; 835 die "Failed creating $binpath/english.list";
836 for my $user (keys %users) { 836 for my $user (keys %users) {
837 for my $id (keys %{$idmap[$user]}) { 837 for my $id (keys %{$idmap[$user]}) {