From 1cddfd64c9eab058f42c18f6be57fb06bb6dffca Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 16 Apr 2014 10:35:27 -0400 Subject: [PATCH] Add a flag to pull_translations.rb to force pull of all translations --- script/pull_translations.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/pull_translations.rb b/script/pull_translations.rb index 0c34e1f24..5b6cc933d 100644 --- a/script/pull_translations.rb +++ b/script/pull_translations.rb @@ -18,17 +18,17 @@ if `which tx`.strip.empty? end puts "Pulling new translations...", "" -# TODO: The following tx command may need to always use "-f" to force pull all translations. -# I don't understand how it decides to skip some files, but it seems to skip -# even when there are new translations on the server sometimes. -Open3.popen2e('tx pull --mode=developer') do |stdin, stdout_err, wait_thr| + +command = "tx pull --mode=developer #{ARGV.include?('force') ? '-f' : ''}" + +Open3.popen2e(command) do |stdin, stdout_err, wait_thr| while line = stdout_err.gets puts line end end puts "" -if !$?.success? +unless $?.success? puts "Something failed. Check the output above.", "" exit $?.exitstatus end