| 19 |
$rcbugs, $bugs = read_bugs |
$rcbugs, $bugs = read_bugs |
| 20 |
$wnpp = read_wnpp |
$wnpp = read_wnpp |
| 21 |
$removals = read_removals |
$removals = read_removals |
| 22 |
|
$dehs = read_dehs |
| 23 |
$actions = Actions::read('package-actions.txt') |
$actions = Actions::read('package-actions.txt') |
| 24 |
$orph = OrphanedPackage::readfile |
$orph = OrphanedPackage::readfile |
| 25 |
$uploadhistory = LastUpload::readfile |
$uploadhistory = LastUpload::readfile |
| 139 |
if $popcon[pkg] < 200 |
if $popcon[pkg] < 200 |
| 140 |
score += (200 - $popcon[pkg]) * 8 |
score += (200 - $popcon[pkg]) * 8 |
| 141 |
end |
end |
| 142 |
|
if $dehs.has_key?(pkg) |
| 143 |
|
score += (CURDATE - $dehs[pkg][2]) * 2 |
| 144 |
|
end |
| 145 |
if $uploadhistory.has_key?(pkg) |
if $uploadhistory.has_key?(pkg) |
| 146 |
uh = $uploadhistory[pkg] |
uh = $uploadhistory[pkg] |
| 147 |
if CURDATE - uh.date > 30 |
if CURDATE - uh.date > 30 |
| 178 |
if $popcon[pkg] < 500 |
if $popcon[pkg] < 500 |
| 179 |
score += (500 - $popcon[pkg]) * 2 |
score += (500 - $popcon[pkg]) * 2 |
| 180 |
end |
end |
| 181 |
|
if $dehs.has_key?(pkg) |
| 182 |
|
score += (CURDATE - $dehs[pkg][2]) |
| 183 |
|
end |
| 184 |
if $rcbugs[pkg] > 0 |
if $rcbugs[pkg] > 0 |
| 185 |
if $rcbugs[pkg] > 4 |
if $rcbugs[pkg] > 4 |
| 186 |
score += 5 * 300 |
score += 5 * 300 |