[Collab-qa-commits] r568 - bapase

lucas at alioth.debian.org lucas at alioth.debian.org
Mon Dec 10 19:17:00 UTC 2007


Author: lucas
Date: 2007-12-10 19:17:00 +0000 (Mon, 10 Dec 2007)
New Revision: 568

Modified:
   bapase/Makefile
   bapase/datafiles.rb
   bapase/gen_html.rb
   bapase/html.rb
Log:
add [RM] next to the packages going to be removed

Modified: bapase/Makefile
===================================================================
--- bapase/Makefile	2007-12-10 18:46:29 UTC (rev 567)
+++ bapase/Makefile	2007-12-10 19:17:00 UTC (rev 568)
@@ -2,7 +2,7 @@
 
 all: scores-html
 	
-scores-html: Sources_ok testing-status.txt popcon_sources.txt package-actions.txt bugsummary wnppsummary orphaned_packages.txt upload-history.txt
+scores-html: Sources_ok testing-status.txt popcon_sources.txt package-actions.txt bugsummary wnppsummary orphaned_packages.txt upload-history.txt removals.txt
 	./gen_html.rb
 
 Sources_ok: testing-main-Sources testing-contrib-Sources testing-non-free-Sources unstable-main-Sources unstable-contrib-Sources unstable-non-free-Sources stable-main-Sources stable-contrib-Sources stable-non-free-Sources oldstable-main-Sources oldstable-contrib-Sources oldstable-non-free-Sources experimental-main-Sources experimental-contrib-Sources experimental-non-free-Sources
@@ -80,6 +80,9 @@
 upload-history.txt:
 	wget -O upload-history.txt http://merkel.debian.org/~filippo/upload-history
 
+removals.txt:
+	./getremovals.rb > removals.txt
+
 clean:
 	rm -f testing-status.txt *-Sources popcon_sources.txt scores.txt Sources_ok bts2ldap-fullindex RC+patch.txt bugsummary wnppsummary orphaned_packages.txt scores-buggy.html scores-orphaned.html upload-history.txt scores-useless.html
 

Modified: bapase/datafiles.rb
===================================================================
--- bapase/datafiles.rb	2007-12-10 18:46:29 UTC (rev 567)
+++ bapase/datafiles.rb	2007-12-10 19:17:00 UTC (rev 568)
@@ -180,6 +180,16 @@
   popcon
 end
 
+# Read removals
+def read_removals
+  removals = {}
+  IO::read('removals.txt').each_line do |l|
+    pkg = l.chomp
+    removals[pkg] = true
+  end
+  removals
+end
+
 def read_bugs
   rcbugs = Hash::new { 0 }
   bugs = Hash::new { 0 }

Modified: bapase/gen_html.rb
===================================================================
--- bapase/gen_html.rb	2007-12-10 18:46:29 UTC (rev 567)
+++ bapase/gen_html.rb	2007-12-10 19:17:00 UTC (rev 568)
@@ -12,6 +12,7 @@
 $popcon = read_popcon
 $rcbugs, $bugs = read_bugs
 $wnpp = read_wnpp
+$removals = read_removals
 $actions = Actions::read('package-actions.txt')
 $orph = OrphanedPackage::readfile
 $uploadhistory = LastUpload::readfile

Modified: bapase/html.rb
===================================================================
--- bapase/html.rb	2007-12-10 18:46:29 UTC (rev 567)
+++ bapase/html.rb	2007-12-10 19:17:00 UTC (rev 568)
@@ -46,7 +46,11 @@
     n += 1
     break if n >= 1000
     io.puts "<tr><td>#{n}</td>"
-    io.puts "<td><a href=\"http://packages.qa.debian.org/#{pkg}\">#{pkg}</a></td>"
+    io.puts "<td><a href=\"http://packages.qa.debian.org/#{pkg}\">#{pkg}</a>"
+    if $removals.has_key?(pkg)
+      io.puts " <b>[RM]</b>"
+    end
+    io.puts"</td>"
     io.puts "<td>#{score[pkg].round}</td>"
     if $actions[pkg]
       if $actions[pkg].act_todo




More information about the Collab-qa-commits mailing list