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,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$
|
||||
#
|
||||
# article.rb
|
||||
|
|
@ -93,6 +93,12 @@ def get_articles(cachedir=false)
|
|||
if first <= last
|
||||
@connections[server]["first"] = first ? first : 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
|
||||
print " First article has higher number than last article on server #{server}.\n"
|
||||
del_server(server)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue