r36089 - in /packages/wordnet/trunk/debian: changelog wn-for-goldendict.rb

unera at users.alioth.debian.org unera at users.alioth.debian.org
Wed Jan 13 07:58:06 UTC 2010


Author: unera
Date: Wed Jan 13 07:58:06 2010
New Revision: 36089

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=36089
Log:
\n instead \r to fix #564385

Modified:
    packages/wordnet/trunk/debian/changelog
    packages/wordnet/trunk/debian/wn-for-goldendict.rb

Modified: packages/wordnet/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/wordnet/trunk/debian/changelog?rev=36089&op=diff
==============================================================================
--- packages/wordnet/trunk/debian/changelog (original)
+++ packages/wordnet/trunk/debian/changelog Wed Jan 13 07:58:06 2010
@@ -1,3 +1,11 @@
+wordnet (1:3.0-22) unstable; urgency=low
+
+  * Disabled stderr buffering in script which building goldendict-wordnet
+    package.
+  * Each line in log has '\n' end symbol instead '\r', closes: #564385.
+
+ -- Dmitry E. Oboukhov <unera at debian.org>  Wed, 13 Jan 2010 10:48:05 +0300
+
 wordnet (1:3.0-21) unstable; urgency=low
 
   * Added icon into goldendict-wordnet dictionary.

Modified: packages/wordnet/trunk/debian/wn-for-goldendict.rb
URL: http://svn.debian.org/wsvn/debian-science/packages/wordnet/trunk/debian/wn-for-goldendict.rb?rev=36089&op=diff
==============================================================================
--- packages/wordnet/trunk/debian/wn-for-goldendict.rb (original)
+++ packages/wordnet/trunk/debian/wn-for-goldendict.rb Wed Jan 13 07:58:06 2010
@@ -30,6 +30,8 @@
 $index_file_verb    = 'dict/dbfiles/index.verb'
 $index_file_adj     = 'dict/dbfiles/index.adj'
 $index_file_adv     = 'dict/dbfiles/index.adv'
+
+$stderr.sync = true
 
 # print UTF-8 BOM first
 print "\xEF\xBB\xBF"
@@ -130,10 +132,10 @@
     if count == 'done'
     	$stderr.puts("\n")
     elsif count =~ /\D/
-        $stderr.puts("\n" + count)
+        $stderr.puts(count)
     elsif (count % 10000 == 0 or current_time - $progress_time > 5)
         $progress_time = current_time
-        $stderr.printf "\r %d articles were done", count
+        $stderr.printf "%d articles were done\n", count
     end
 end
 




More information about the debian-science-commits mailing list