[Collab-qa-commits] r633 - testing-status
lucas at alioth.debian.org
lucas at alioth.debian.org
Wed Jan 9 23:40:13 UTC 2008
Author: lucas
Date: 2008-01-09 23:40:13 +0000 (Wed, 09 Jan 2008)
New Revision: 633
Modified:
testing-status/pkgtestingstatus.rb
Log:
fixed detection of testing problems
Modified: testing-status/pkgtestingstatus.rb
===================================================================
--- testing-status/pkgtestingstatus.rb 2008-01-08 05:05:35 UTC (rev 632)
+++ testing-status/pkgtestingstatus.rb 2008-01-09 23:40:13 UTC (rev 633)
@@ -54,18 +54,13 @@
end
def testing_ok?(days)
+ return [true, nil] if @@curdate - @firstinunstable < days
+ return [true, nil] if @@curdate - @intesting < 2
+
if @intesting != @@datezero
- if @@curdate - @intesting > days
- return [false, @@curdate - @intesting ]
- else
- return [true, nil]
- end
+ return [false, @@curdate - @intesting ]
else
- if @@curdate - @firstinunstable > days
- return [false, @@curdate - @firstinunstable ]
- else
- return [true, nil]
- end
+ return [false, @@curdate - @firstinunstable ]
end
end
More information about the Collab-qa-commits
mailing list