From e496b95ba2a53cff85f88c41340e3e6185a1d6f8 Mon Sep 17 00:00:00 2001 From: randomdan Date: Tue, 10 Aug 2010 23:21:59 +0000 Subject: Implement downloading and merging open Gentoo bugs into the database --- gentoobrowse/console/bugimport.xml | 33 +++++++++++++++++++++++++++++++++ gentoobrowse/console/bugs.xslt | 11 +++++++++++ 2 files changed, 44 insertions(+) create mode 100644 gentoobrowse/console/bugimport.xml create mode 100644 gentoobrowse/console/bugs.xslt diff --git a/gentoobrowse/console/bugimport.xml b/gentoobrowse/console/bugimport.xml new file mode 100644 index 0000000..90b73ee --- /dev/null +++ b/gentoobrowse/console/bugimport.xml @@ -0,0 +1,33 @@ + + + + + + + + + + bugid + severity + status + summary + + + + + SELECT b.bugid, p.packageid + FROM bugs b, packages p, categories c + WHERE p.categoryid = c.categoryid + AND TO_TSVECTOR('english', b.summary) @@ PLAINTO_TSQUERY('english', c.name || '/' || p.name) + + + bugid + packageid + + + diff --git a/gentoobrowse/console/bugs.xslt b/gentoobrowse/console/bugs.xslt new file mode 100644 index 0000000..66055ce --- /dev/null +++ b/gentoobrowse/console/bugs.xslt @@ -0,0 +1,11 @@ + + + + bug_id|summary|status|severity| + + + + |||| + + + -- cgit v1.2.3