From fba7ace35dcb4117c5760662bb7918a37f063cb4 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 12 Aug 2010 19:31:46 +0000 Subject: Bind merge populators recursively to leafs Make path in file based rows a variable Fix variable cache invalidation on parent row change Use new features to only load new files --- gentoobrowse/console/packagefileimport.xml | 35 +++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/gentoobrowse/console/packagefileimport.xml b/gentoobrowse/console/packagefileimport.xml index 5ad2b95..45a41a8 100644 --- a/gentoobrowse/console/packagefileimport.xml +++ b/gentoobrowse/console/packagefileimport.xml @@ -17,17 +17,32 @@ - - - - fileid - line - content - - + + + + SELECT fileid, '/usr/portage/metadata/cache/' || filename AS filename + FROM files + WHERE cachedat IS NULL OR cachedat != moddate + ORDER BY fileid + + + + fileid + line + content + + + + UPDATE files SET cachedat = moddate WHERE fileid = ? + + + + + - fileid + fileid line content -- cgit v1.2.3