From a1f36c0da633d29da0d490131c1d13f5dc7fa784 Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 8 Aug 2011 18:14:59 +0000 Subject: Fix target table name Fix rowset name Fix metadata SQL Use PG pipe, not socket --- gentoobrowse/console/changelogs.xml | 2 +- gentoobrowse/console/packagemetadata.xml | 2 +- gentoobrowse/console/use.global.xml | 8 ++++---- gentoobrowse/datasources/postgres.xml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gentoobrowse/console/changelogs.xml b/gentoobrowse/console/changelogs.xml index 11235c4..51781c5 100644 --- a/gentoobrowse/console/changelogs.xml +++ b/gentoobrowse/console/changelogs.xml @@ -27,7 +27,7 @@ comment - + a.packageid IN ( SELECT p.packageid diff --git a/gentoobrowse/console/packagemetadata.xml b/gentoobrowse/console/packagemetadata.xml index 1f89694..9c00963 100644 --- a/gentoobrowse/console/packagemetadata.xml +++ b/gentoobrowse/console/packagemetadata.xml @@ -5,7 +5,7 @@ SELECT p.packageid, 'file://' || ft.searchroot || f.filename AS path, f.moddate FROM packages p, categories c, files f, filetypes ft - WHERE (p.metadatadate IS NULL OR p.metadatadate != f.moddate) + WHERE (f.cachedat IS NULL OR f.cachedat != f.moddate) AND p.categoryid = c.categoryid AND f.filename = c.name || '/' || p.name || '/metadata.xml' AND f.filetypeid = ft.filetypeid diff --git a/gentoobrowse/console/use.global.xml b/gentoobrowse/console/use.global.xml index 9fafbfe..69fb1d2 100644 --- a/gentoobrowse/console/use.global.xml +++ b/gentoobrowse/console/use.global.xml @@ -1,12 +1,12 @@ - + text - + ([^ ]+) - (.+) @@ -15,8 +15,8 @@ - - + + use diff --git a/gentoobrowse/datasources/postgres.xml b/gentoobrowse/datasources/postgres.xml index 9bece3e..8a2c975 100644 --- a/gentoobrowse/datasources/postgres.xml +++ b/gentoobrowse/datasources/postgres.xml @@ -1,7 +1,7 @@ - host=localhost sslmode=disable user=gentoo dbname=gentoo options='-c search_path=gentoobrowse,public' + sslmode=disable user=gentoo dbname=gentoo options='-c search_path=gentoobrowse,public' - host=localhost sslmode=disable user=gentoo dbname=gentoo options='-c search_path=gentoobrowse,public' + sslmode=disable user=gentoo dbname=gentoo options='-c search_path=gentoobrowse,public' -- cgit v1.2.3