[Collab-qa-commits] r1656 - bapase

Jakub Wilk jwilk-guest at alioth.debian.org
Fri Jan 1 22:25:30 UTC 2010


Author: jwilk-guest
Date: 2010-01-01 22:25:30 +0000 (Fri, 01 Jan 2010)
New Revision: 1656

Modified:
   bapase/datafiles.rb
Log:
Use WAIT_* constants rather than hardcoded numbers.


Modified: bapase/datafiles.rb
===================================================================
--- bapase/datafiles.rb	2010-01-01 21:50:03 UTC (rev 1655)
+++ bapase/datafiles.rb	2010-01-01 22:25:30 UTC (rev 1656)
@@ -167,12 +167,12 @@
       elsif @actions[idx][2][0] == 'PROP_RM'
         ok = false
         if @actions[idx][0] + WAIT_RM_O <= CURDATE and !rm_o
-          @act_status = "<a href=\"http://bugs.debian.org/#{@actions[idx][2][1]}\">Should be orphaned before removal (since #{@actions[idx][0] + 50})</a>"
+          @act_status = "<a href=\"http://bugs.debian.org/#{@actions[idx][2][1]}\">Should be orphaned before removal (since #{@actions[idx][0] + WAIT_RM_O})</a>"
           @act_todo = true
           ok = true
         end
         if @actions[idx][0] + WAIT_RM_RM <= CURDATE
-          @act_status = "<a href=\"http://bugs.debian.org/#{@actions[idx][2][1]}\">Should be removed (since #{@actions[idx][0] + 100})</a>"
+          @act_status = "<a href=\"http://bugs.debian.org/#{@actions[idx][2][1]}\">Should be removed (since #{@actions[idx][0] + WAIT_RM_RM})</a>"
           @act_todo = true
           ok = true
         end
@@ -183,7 +183,7 @@
         break
       elsif @actions[idx][2][0] == 'PROP_O'
         if @actions[idx][0] + WAIT_O_O <= CURDATE
-          @act_status = "<a href=\"http://bugs.debian.org/#{@actions[idx][2][1]}\">Should be orphaned (since #{@actions[idx][0] + 50})</a>"
+          @act_status = "<a href=\"http://bugs.debian.org/#{@actions[idx][2][1]}\">Should be orphaned (since #{@actions[idx][0] + WAIT_O_O})</a>"
           @act_todo = true
         else
           @act_status = "<a href=\"http://bugs.debian.org/#{@actions[idx][2][1]}\">Orphaning suggested (since #{@actions[idx][0]})</a>"
@@ -192,7 +192,7 @@
         break
       elsif @actions[idx][2][0] == 'O_PROP_RM'
         if @actions[idx][0] + WAIT_ORM_RM <= CURDATE
-          @act_status = "<a href=\"http://bugs.debian.org/#{@actions[idx][2][1]}\">Should be removed (O pkg) (since #{@actions[idx][0] + 50})</a>"
+          @act_status = "<a href=\"http://bugs.debian.org/#{@actions[idx][2][1]}\">Should be removed (O pkg) (since #{@actions[idx][0] + WAIT_ORM_RM})</a>"
           @act_todo = true
         else
           @act_status = "<a href=\"http://bugs.debian.org/#{@actions[idx][2][1]}\">Removal suggested (O pkg) (since #{@actions[idx][0]})</a>"




More information about the Collab-qa-commits mailing list