[Collab-qa-commits] r562 - bapase
lucas at alioth.debian.org
lucas at alioth.debian.org
Thu Dec 6 09:40:48 UTC 2007
Author: lucas
Date: 2007-12-06 09:40:48 +0000 (Thu, 06 Dec 2007)
New Revision: 562
Added:
bapase/Template.orphan
bapase/Templates.orphan-before-removal
Removed:
bapase/Templates
Modified:
bapase/Makefile
bapase/gen_html.rb
Log:
added scores-useless.html using the last upload + popcon metrics
Modified: bapase/Makefile
===================================================================
--- bapase/Makefile 2007-12-05 23:09:01 UTC (rev 561)
+++ bapase/Makefile 2007-12-06 09:40:48 UTC (rev 562)
@@ -1,13 +1,10 @@
MIRROR=http://ftp.de.debian.org/debian
-all: scores.html scores_orphaned.html
+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
./gen_html.rb
-scores_orphaned.html: Sources_ok testing-status.txt popcon_sources.txt package-actions.txt bugsummary wnppsummary orphaned_packages.txt upload-history.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
touch Sources_ok
@@ -84,6 +81,6 @@
wget -O upload-history.txt http://merkel.debian.org/~filippo/upload-history
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.html scores_orphaned.html
+ 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
-.PHONY: clean
+.PHONY: clean scores-html
Added: bapase/Template.orphan
===================================================================
--- bapase/Template.orphan (rev 0)
+++ bapase/Template.orphan 2007-12-06 09:40:48 UTC (rev 562)
@@ -0,0 +1,6 @@
+Hi,
+
+Since the situation didn't improve, and the maintainer never answered
+this bug report, I'm now orphaning the package, as originally suggested.
+
+Thank you,
Deleted: bapase/Templates
===================================================================
--- bapase/Templates 2007-12-05 23:09:01 UTC (rev 561)
+++ bapase/Templates 2007-12-06 09:40:48 UTC (rev 562)
@@ -1,25 +0,0 @@
-Hi,
-
-Since the situation didn't improve, and the maintainer never answered
-this bug report, I'm now orphaning the package, as originally suggested.
-
-Thank you,
-
-
--------------
-clone n -1
-reassign -1 wnpp
-severity -1 normal
-retitle -1
-thanks
-
-Hi,
-
-Since the situation hasn't evolved, I am now orphaning this package.
-I still plan to request its removal in the near future, but this orphaning could allow someone to adopt the package if appropriate.
-
-Please reply to this bug report if you feel that this package shouldn't be removed.
-
-Please also reply if you think that this package _should_ be removed, as this will allow to make the process quicker.
-
-Thank you,
Added: bapase/Templates.orphan-before-removal
===================================================================
--- bapase/Templates.orphan-before-removal (rev 0)
+++ bapase/Templates.orphan-before-removal 2007-12-06 09:40:48 UTC (rev 562)
@@ -0,0 +1,16 @@
+clone n -1
+reassign -1 wnpp
+severity -1 normal
+retitle -1
+thanks
+
+Hi,
+
+Since the situation hasn't evolved, I am now orphaning this package.
+I still plan to request its removal in the near future, but this orphaning could allow someone to adopt the package if appropriate.
+
+Please reply to this bug report if you feel that this package shouldn't be removed.
+
+Please also reply if you think that this package _should_ be removed, as this will allow to make the process quicker.
+
+Thank you,
Modified: bapase/gen_html.rb
===================================================================
--- bapase/gen_html.rb 2007-12-05 23:09:01 UTC (rev 561)
+++ bapase/gen_html.rb 2007-12-06 09:40:48 UTC (rev 562)
@@ -16,7 +16,8 @@
$orph = OrphanedPackage::readfile
$uploadhistory = LastUpload::readfile
-# Compute score for all packages
+########################################################################
+######## -BUGGY
$score = {}
$pkgs.keys.each do |pkg|
score = 0
@@ -31,7 +32,7 @@
score += 100000 # bump score if action needed
end
if $popcon[pkg] < 500
- score += (500 - $popcon[pkg]) * 2
+ score += (500 - $popcon[pkg])
end
if $rcbugs[pkg] > 0
if $rcbugs[pkg] > 4
@@ -59,7 +60,39 @@
$score[pkg] = score if score > 0
end
-# Compute score, orphaned packages only
+f = File::new('scores-buggy.html', 'w')
+gen_html($score, f)
+f.close
+
+########################################################################
+######## -USELESS
+$uscore = {}
+$pkgs.keys.each do |pkg|
+ score = 0
+ if $actions[pkg] and $actions[pkg].act_todo
+ score += 100000 # bump score if action needed
+ end
+ if $popcon[pkg] < 200
+ score += (200 - $popcon[pkg]) * 8
+ end
+ if $uploadhistory.has_key?(pkg)
+ uh = $uploadhistory[pkg]
+ if CURDATE - uh.date > 30
+ d = [ uh.nmudate, uh.date ].max
+ score += (CURDATE - d)
+ if d != uh.date
+ score += (uh.nmudate - uh.date) * 0.5 # add time between NMU and last maint upload
+ end
+ end
+ end
+ $uscore[pkg] = score if score > 0
+end
+
+f = File::new('scores-useless.html', 'w')
+gen_html($uscore, f)
+f.close
+########################################################################
+######## -ORPHANED
$oscore = {}
$pkgs.keys.each do |pkg|
next if !$orph.has_key?(pkg)
@@ -104,10 +137,6 @@
$oscore[pkg] = score if score > 0
end
-# Generate HTML files
-f = File::new('scores.html', 'w')
-gen_html($score, f)
-f.close
-f = File::new('scores_orphaned.html', 'w')
+f = File::new('scores-orphaned.html', 'w')
gen_html($oscore, f, true)
f.close
More information about the Collab-qa-commits
mailing list