| 14 |
['squeeze_not_sid', 'squeeze, not sid', 'id in (select id from bugs_rt_affects_testing) and id not in (select id from bugs_rt_affects_unstable)'], |
['squeeze_not_sid', 'squeeze, not sid', 'id in (select id from bugs_rt_affects_testing) and id not in (select id from bugs_rt_affects_unstable)'], |
| 15 |
['sid_not_squeeze', 'sid, not squeeze', 'id in (select id from bugs_rt_affects_unstable) and id not in (select id from bugs_rt_affects_testing)'], |
['sid_not_squeeze', 'sid, not squeeze', 'id in (select id from bugs_rt_affects_unstable) and id not in (select id from bugs_rt_affects_testing)'], |
| 16 |
['lenny', 'lenny', 'id in (select id from bugs_rt_affects_stable)'], |
['lenny', 'lenny', 'id in (select id from bugs_rt_affects_stable)'], |
| 17 |
|
['any', 'any', 'id in (select id from bugs where status!=\'done\')'], |
| 18 |
] |
] |
| 19 |
|
|
| 20 |
FILTERS = [ |
FILTERS = [ |
| 25 |
['notsqueeze', 'packages not in squeeze', 'id not in (select id from bugs_packages, sources where bugs_packages.source = sources.source and release=\'squeeze\')'], |
['notsqueeze', 'packages not in squeeze', 'id not in (select id from bugs_packages, sources where bugs_packages.source = sources.source and release=\'squeeze\')'], |
| 26 |
['merged', 'merged bugs', 'id in (select id from bugs_merged_with where id > merged_with)'], |
['merged', 'merged bugs', 'id in (select id from bugs_merged_with where id > merged_with)'], |
| 27 |
['done', 'marked as done', 'status = \'done\''], |
['done', 'marked as done', 'status = \'done\''], |
| 28 |
['outdatedsqueeze', 'outdated binaries in squeeze', "source in (select distinct p1.source from packages_summary p1, packages_summary p2 where p1.source = p2.source and p1.release='squeeze' and p2.release='squeeze' and p1.source_version != p2.source_version)"], |
['outdatedsqueeze', 'outdated binaries in squeeze', "bugs.source in (select distinct p1.source from packages_summary p1, packages_summary p2 where p1.source = p2.source and p1.release='squeeze' and p2.release='squeeze' and p1.source_version != p2.source_version)"], |
| 29 |
['outdatedsid', 'outdated binaries in sid', "bugs.source in (select distinct p1.source from packages_summary p1, packages_summary p2 where p1.source = p2.source and p1.release='sid' and p2.release='sid' and p1.source_version != p2.source_version)"], |
['outdatedsid', 'outdated binaries in sid', "bugs.source in (select distinct p1.source from packages_summary p1, packages_summary p2 where p1.source = p2.source and p1.release='sid' and p2.release='sid' and p1.source_version != p2.source_version)"], |
| 30 |
['needmig', 'different versions in squeeze and sid', "bugs.source in (select s1.source from sources s1, sources s2 where s1.source = s2.source and s1.release = 'squeeze' and s2.release='sid' and s1.version != s2.version)"], |
['needmig', 'different versions in squeeze and sid', "bugs.source in (select s1.source from sources s1, sources s2 where s1.source = s2.source and s1.release = 'squeeze' and s2.release='sid' and s1.version != s2.version)"], |
| 31 |
['newerubuntu', 'newer in Ubuntu than in sid', "bugs.source in (select s1.source from sources_uniq s1, ubuntu_sources s2 where s1.source = s2.source and s1.release = 'sid' and s2.release='maverick' and s1.version < s2.version)"], |
['newerubuntu', 'newer in Ubuntu than in sid', "bugs.source in (select s1.source from sources_uniq s1, ubuntu_sources s2 where s1.source = s2.source and s1.release = 'sid' and s2.release='maverick' and s1.version < s2.version)"], |
| 37 |
['lfs', 'release goal: Large File Support', 'id in (select id from bugs_tags where tag=\'lfs\')', false ], |
['lfs', 'release goal: Large File Support', 'id in (select id from bugs_tags where tag=\'lfs\')', false ], |
| 38 |
['boot', 'release goal: boot performance (init.d dependencies)', 'id in (select id from bugs_usertags where email = \'initscripts-ng-devel@lists.alioth.debian.org\')', false], |
['boot', 'release goal: boot performance (init.d dependencies)', 'id in (select id from bugs_usertags where email = \'initscripts-ng-devel@lists.alioth.debian.org\')', false], |
| 39 |
['oldgnome', 'release goal: remove obsolete GNOME libraries', 'id in (select id from bugs_usertags where email = \'pkg-gnome-maintainers@lists.alioth.debian.org\' and tag=\'oldlibs\')', false], |
['oldgnome', 'release goal: remove obsolete GNOME libraries', 'id in (select id from bugs_usertags where email = \'pkg-gnome-maintainers@lists.alioth.debian.org\' and tag=\'oldlibs\')', false], |
| 40 |
|
['ruby', 'Ruby bugs', "bugs.source in (select source from sources where maintainer ~ 'ruby' or uploaders ~ 'ruby')\nOR bugs.package in (select source from packages where (package ~ 'ruby' or depends ~ 'ruby') and source != 'subversion')\nOR title ~ 'ruby'"], |
| 41 |
] |
] |
| 42 |
|
|
| 43 |
SORTS = [ |
SORTS = [ |
| 251 |
q += "AND FALSE\n" |
q += "AND FALSE\n" |
| 252 |
end |
end |
| 253 |
q += "order by #{sortby} #{sorto}" |
q += "order by #{sortby} #{sorto}" |
| 254 |
sth = dbh.prepare(q) |
begin |
| 255 |
sth.execute |
sth = dbh.prepare(q) |
| 256 |
rows = sth.fetch_all |
sth.execute |
| 257 |
|
rows = sth.fetch_all |
| 258 |
|
rescue DBI::ProgrammingError => e |
| 259 |
|
puts "<p>The query generated an error, please report it to lucas@debian.org: #{e.message}</p>" |
| 260 |
|
puts "<pre>#{q}</pre>" |
| 261 |
|
exit(0) |
| 262 |
|
end |
| 263 |
|
|
| 264 |
if cols['chints'] |
if cols['chints'] |
| 265 |
sthh = dbh.prepare("select distinct source, type, argument, version, file, comment from relevant_hints order by type") |
sthh = dbh.prepare("select distinct source, type, argument, version, file, comment from relevant_hints order by type") |
| 317 |
puts <<-EOF |
puts <<-EOF |
| 318 |
</div> |
</div> |
| 319 |
<div class="footer"> |
<div class="footer"> |
| 320 |
<small>Suggestions / comments / patches to lucas@debian.org. <a href="http://svn.debian.org/wsvn/collab-qa/udd/web/cgi-bin/bugs.cgi">source code</a>.</small> |
<small>Suggestions / comments / patches to lucas@debian.org. <a href="http://svn.debian.org/wsvn/collab-qa/udd/web/bugs.cgi">source code</a>.</small> |
| 321 |
</div> |
</div> |
| 322 |
</body> |
</body> |
| 323 |
</html> |
</html> |