Should fix this bug:
Getting articles for alt.test
Server: news.wizeazz.nl
First: 0
Last: 0
match rule 1 0 > -1
Set::IntSpan::_copy_run_list: Bad order: 0--1
This commit is contained in:
parent
fb023d276d
commit
096aedc95a
1 changed files with 5 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#################################
|
#################################
|
||||||
#
|
#
|
||||||
# $Dwarf: article.rb,v 1.61 2003/04/20 18:39:13 ward Exp $
|
# $Dwarf: article.rb,v 1.62 2003/04/22 21:30:07 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
#
|
#
|
||||||
# article.rb
|
# article.rb
|
||||||
|
|
@ -97,8 +97,10 @@ def get_articles(cachedir=false)
|
||||||
print " First: #{first}\n"
|
print " First: #{first}\n"
|
||||||
print " Last: #{last}\n"
|
print " Last: #{last}\n"
|
||||||
# clean up old newsrc entries
|
# clean up old newsrc entries
|
||||||
|
if @connections[server]["first"] > 0
|
||||||
@connections[server]["newsrc"].unmark_range(@group, 0, (@connections[server]["first"].to_i-1).to_s)
|
@connections[server]["newsrc"].unmark_range(@group, 0, (@connections[server]["first"].to_i-1).to_s)
|
||||||
@connections[server]["newsrc"].save
|
@connections[server]["newsrc"].save
|
||||||
|
end
|
||||||
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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue