major fix in newsrc handling
minor output changes
This commit is contained in:
parent
00ae547da2
commit
fb023d276d
3 changed files with 13 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
# $Dwarf: CHANGELOG,v 1.15 2003/04/18 22:34:20 ward Exp $
|
# $Dwarf: CHANGELOG,v 1.16 2003/04/20 20:42:58 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
from 0.1.0 to ...
|
from 0.1.0 to ...
|
||||||
|
|
@ -6,6 +6,9 @@ from 0.1.0 to ...
|
||||||
- code cleanups
|
- code cleanups
|
||||||
- split of uudecoding and ydecoding
|
- split of uudecoding and ydecoding
|
||||||
- add some regression tests
|
- add some regression tests
|
||||||
|
- various bug fixes
|
||||||
|
- remove articles from newsrc that aren't on the server any
|
||||||
|
longer
|
||||||
|
|
||||||
from 0.0.9 to 0.1.0
|
from 0.0.9 to 0.1.0
|
||||||
- allow comments after continuing lines, like this:
|
- allow comments after continuing lines, like this:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#################################
|
#################################
|
||||||
#
|
#
|
||||||
# $Dwarf: article.rb,v 1.60 2003/04/20 16:34:40 ward Exp $
|
# $Dwarf: article.rb,v 1.61 2003/04/20 18:39:13 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
#
|
#
|
||||||
# article.rb
|
# article.rb
|
||||||
|
|
@ -93,6 +93,12 @@ def get_articles(cachedir=false)
|
||||||
if first <= last
|
if first <= last
|
||||||
@connections[server]["first"] = first ? first : 0
|
@connections[server]["first"] = first ? first : 0
|
||||||
@connections[server]["last"] = last ? last : 0
|
@connections[server]["last"] = last ? last : 0
|
||||||
|
print " Server: #{server}\n"
|
||||||
|
print " First: #{first}\n"
|
||||||
|
print " Last: #{last}\n"
|
||||||
|
# clean up old newsrc entries
|
||||||
|
@connections[server]["newsrc"].unmark_range(@group, 0, (@connections[server]["first"].to_i-1).to_s)
|
||||||
|
@connections[server]["newsrc"].save
|
||||||
else
|
else
|
||||||
print " First article has higher number than last article on server #{server}.\n"
|
print " First article has higher number than last article on server #{server}.\n"
|
||||||
del_server(server)
|
del_server(server)
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/local/bin/ruby -w
|
#!/usr/local/bin/ruby -w
|
||||||
|
|
||||||
# $Dwarf: ripnews.rb,v 1.48 2003/04/20 20:41:10 ward Exp $
|
# $Dwarf: ripnews.rb,v 1.49 2003/04/20 21:09:00 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
@ -373,7 +373,7 @@ check_config
|
||||||
|
|
||||||
@maxfilelength = get_max_file_length(@config[@config.keys[0]]["TEMPDIR"])
|
@maxfilelength = get_max_file_length(@config[@config.keys[0]]["TEMPDIR"])
|
||||||
|
|
||||||
print "$Id$\n"
|
print "$Id$\n\n"
|
||||||
|
|
||||||
if Debuglevel > 2
|
if Debuglevel > 2
|
||||||
@config.each_key{|i|
|
@config.each_key{|i|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue