diff --git a/trunk/ripnews/news/article.rb b/trunk/ripnews/news/article.rb index dc21e34..82e1c40 100644 --- a/trunk/ripnews/news/article.rb +++ b/trunk/ripnews/news/article.rb @@ -618,10 +618,10 @@ def _ydecode_file(file, outfile) totalsize = $8.to_i filename = $10 print "found beginning" - if part + if part != nil print " of part #{part}" end - if total + if total != nil print " of #{total}" end print ", linesize = #{linesize}, size = #{totalsize}, filename = #{filename}\n" @@ -653,7 +653,7 @@ def _ydecode_file(file, outfile) if size != bytes print "part size mismatch, is #{bytes}, should be #{size}\n" end - if !part + if part == nil return mode, filename end total += bytes